MCPcopy Index your code
hub / github.com/labstack/echo / TestContext_Validate

Function TestContext_Validate

context_test.go:1060–1068  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

1058}
1059
1060func TestContext_Validate(t *testing.T) {
1061 e := New()
1062 c := e.NewContext(nil, nil)
1063
1064 assert.Error(t, c.Validate(struct{}{}))
1065
1066 e.Validator = &validator{}
1067 assert.NoError(t, c.Validate(struct{}{}))
1068}
1069
1070func TestContext_QueryString(t *testing.T) {
1071 e := New()

Callers

nothing calls this directly

Calls 4

ValidateMethod · 0.95
NewFunction · 0.85
NewContextMethod · 0.80
ErrorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…