- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestToStringKey (0.12 sec)
-
utils/utils_test.go
t.Run(test.v, func(t *testing.T) { if out := CheckTruth(test.v); out != test.out { t.Errorf("CheckTruth(%s) want: %t, got: %t", test.v, test.out, out) } }) } } func TestToStringKey(t *testing.T) { cases := []struct { values []interface{} key string }{ {[]interface{}{"a"}, "a"}, {[]interface{}{1, 2, 3}, "1_2_3"}, {[]interface{}{1, nil, 3}, "1_nil_3"},
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Thu Aug 22 11:03:42 UTC 2024 - 4.9K bytes - Viewed (0)