MCPcopy Index your code
hub / github.com/google/go-github / Test_normalizedOpName

Function Test_normalizedOpName

tools/metadata/metadata_test.go:12–30  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

10)
11
12func Test_normalizedOpName(t *testing.T) {
13 t.Parallel()
14 for _, td := range []struct {
15 name string
16 want string
17 }{
18 {name: "", want: ""},
19 {name: "get /foo/{id}", want: "GET /foo/*"},
20 {name: "get foo", want: "GET /foo"},
21 } {
22 t.Run(td.name, func(t *testing.T) {
23 t.Parallel()
24 got := normalizedOpName(td.name)
25 if got != td.want {
26 t.Errorf("normalizedOpName() = %v, want %v", got, td.want)
27 }
28 })
29 }
30}
31
32func Test_normalizeDocURL(t *testing.T) {
33 t.Parallel()

Callers

nothing calls this directly

Calls 2

normalizedOpNameFunction · 0.85
RunMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…