(t *testing.T)
| 218 | } |
| 219 | |
| 220 | func TestBoolPtr(t *testing.T) { |
| 221 | truePtr := boolPtr(true) |
| 222 | falsePtr := boolPtr(false) |
| 223 | |
| 224 | if truePtr == nil || *truePtr != true { |
| 225 | t.Error("boolPtr(true) should return pointer to true") |
| 226 | } |
| 227 | if falsePtr == nil || *falsePtr != false { |
| 228 | t.Error("boolPtr(false) should return pointer to false") |
| 229 | } |
| 230 | } |
| 231 | |
| 232 | // TestExecInPodCommandIsArray verifies that execInPod takes command as array |
| 233 | // This is a security test - commands must NOT be passed through a shell |