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

Function TestMapFloat_Invalid

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

Source from the content-addressed store, hash-verified

334}
335
336func TestMapFloat_Invalid(t *testing.T) {
337 cfg := Node{
338 Children: []Node{
339 {
340 Name: "foo",
341 Args: []string{"AAAA"},
342 },
343 },
344 }
345
346 m := NewMap(nil, cfg)
347
348 foo := 0.0
349 m.Float("foo", false, true, 0, &foo)
350
351 _, err := m.Process()
352 if err == nil {
353 t.Errorf("Expected failure")
354 }
355}
356
357func TestMapBool(t *testing.T) {
358 cfg := Node{

Callers

nothing calls this directly

Calls 3

FloatMethod · 0.95
ProcessMethod · 0.95
NewMapFunction · 0.85

Tested by

no test coverage detected