1 package name 2 3 import ( 4 "testing" 5 6 "github.com/stretchr/testify/require" 7 ) 8 9 func Test_Ident_Key(t *testing.T) { 10 table := map[string]string{ 11 "Foo/bar/baz": "foo/bar/baz", 12 "Foo\\bar\\baz": "foo/bar/baz", 13 } 14 15 for in, out := range table { 16 t.Run(in, func(st *testing.T) { 17 r := require.New(st) 18 r.Equal(out, Key(in)) 19 }) 20 } 21 } 22