MCPcopy
hub / github.com/danielgtaylor/huma / TestParseQuery

Function TestParseQuery

queryparam/queryparam_test.go:102–116  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

100}
101
102func TestParseQuery(t *testing.T) {
103 for _, test := range parseTests {
104 t.Run(test.query, func(t *testing.T) {
105 if test.ok {
106 for k, v := range test.out {
107 result := Get(test.query, k)
108 assert.Equal(t, v[0], result)
109 }
110 } else {
111 // Doesn't get stuck, doesn't crash.
112 assert.Empty(t, Get(test.query, "missingvalue"))
113 }
114 })
115 }
116}
117
118func TestQuery(t *testing.T) {
119 for _, item := range []struct {

Callers

nothing calls this directly

Calls 2

GetFunction · 0.70
RunMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…