(t *testing.T)
| 164 | } |
| 165 | |
| 166 | func TestBoolean_IsValue(t *testing.T) { |
| 167 | for _, data := range []bool{true, false} { |
| 168 | t.Run(fmt.Sprintf("%v", data), func(t *testing.T) { |
| 169 | reporter := newMockReporter(t) |
| 170 | |
| 171 | if data { |
| 172 | NewBoolean(reporter, data).IsTrue(). |
| 173 | chain.assert(t, success) |
| 174 | |
| 175 | NewBoolean(reporter, data).IsFalse(). |
| 176 | chain.assert(t, failure) |
| 177 | } else { |
| 178 | NewBoolean(reporter, data).IsTrue(). |
| 179 | chain.assert(t, failure) |
| 180 | |
| 181 | NewBoolean(reporter, data).IsFalse(). |
| 182 | chain.assert(t, success) |
| 183 | } |
| 184 | }) |
| 185 | } |
| 186 | } |
| 187 | |
| 188 | func TestBoolean_InList(t *testing.T) { |
| 189 | t.Run("basic", func(t *testing.T) { |
nothing calls this directly
no test coverage detected
searching dependent graphs…