Debian Codegraph @

strcase/kebab_test.go

raw symbols SCIP
1 package strcasescip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/strcase`/
2
3 import (
4 "testingscip-go gomod github.com/golang/go/src go1.17 testing/"
5 )
6
7 func TestToKebabscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/strcase`/TestToKebab().(t *testingscip-go gomod github.com/golang/go/src go1.17 testing/.Tscip-go gomod github.com/golang/go/src go1.17 testing/T#) {
8 cases := [][]string{
9 {"testCase", "test-case"},
10 {"TestCase", "test-case"},
11 {"Test Case", "test-case"},
12 {" Test Case", "test-case"},
13 {"Test Case ", "test-case"},
14 {" Test Case ", "test-case"},
15 {"test", "test"},
16 {"test_case", "test-case"},
17 {"Test", "test"},
18 {"", ""},
19 {"ManyManyWords", "many-many-words"},
20 {"manyManyWords", "many-many-words"},
21 {"AnyKind of_string", "any-kind-of-string"},
22 {"numbers2and55with000", "numbers2and55with000"},
23 {"JSONData", "json-data"},
24 {"userID", "user-id"},
25 {"AAAbbb", "aa-abbb"},
26 }
27 for _, i := range cases {
28 in := i[0]
29 out := i[1]
30 result := ToKebabscip-go gomod github.com/scaleway/scaleway-sdk-go . `github.com/scaleway/scaleway-sdk-go/strcase`/ToKebab().(in)
31 if result != out {
32 t.Errorscip-go gomod github.com/golang/go/src go1.17 testing/common#Error().("'" + result + "' != '" + out + "'")
33 }
34 }
35 }