INNER CODE UNIT · Go
Test_GetLicenseKey_FromLiteral_WithDashes
inlets/inlets-operator · config_test.go:88
func Test_GetLicenseKey_FromLiteral_WithDashes(t *testing.T) {
want := `static-dashes-key-text`
c := TunnelConfig{
License: want,
}
key, err := c.GetLicenseKey()
if err != nil {
t.Fatalf("no error wanted for a valid key")
}
if want != key {
t.Fatalf("want %q but got %q", want, key)
}
}