MCPcopy Create free account
hub / github.com/foxcpp/maddy / TestMapInt_Invalid

Function TestMapInt_Invalid

framework/config/map_test.go:290–309  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

288}
289
290func TestMapInt_Invalid(t *testing.T) {
291 cfg := Node{
292 Children: []Node{
293 {
294 Name: "foo",
295 Args: []string{"AAAA"},
296 },
297 },
298 }
299
300 m := NewMap(nil, cfg)
301
302 foo := 0
303 m.Int("foo", false, true, 0, &foo)
304
305 _, err := m.Process()
306 if err == nil {
307 t.Errorf("Expected failure")
308 }
309}
310
311func TestMapFloat(t *testing.T) {
312 cfg := Node{

Callers

nothing calls this directly

Calls 3

IntMethod · 0.95
ProcessMethod · 0.95
NewMapFunction · 0.85

Tested by

no test coverage detected