(t *testing.T)
| 117 | } |
| 118 | |
| 119 | func TestLookupMapPathInvalid(t *testing.T) { |
| 120 | tsts := []struct { |
| 121 | Path []string |
| 122 | Root map[string]interface{} |
| 123 | }{ |
| 124 | {nil, nil}, |
| 125 | {[]string{"a"}, nil}, |
| 126 | {[]string{"a", "b"}, map[string]interface{}{"a": "c"}}, |
| 127 | } |
| 128 | for _, tst := range tsts { |
| 129 | t.Run(fmt.Sprint(tst.Path), func(t *testing.T) { |
| 130 | got, err := lookupMapPath(tst.Path, tst.Root) |
| 131 | if err == nil { |
| 132 | t.Fatalf("lookupMapPath succeeded with %#v, but want failure", got) |
| 133 | } |
| 134 | }) |
| 135 | } |
| 136 | } |
| 137 | |
| 138 | func TestParseRoomMemberCountCondition(t *testing.T) { |
| 139 | tsts := []struct { |
nothing calls this directly
no test coverage detected