MCPcopy
hub / github.com/microsoft/retina / TestBoolPtr

Function TestBoolPtr

shell/trace_test.go:220–230  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

218}
219
220func 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

Callers

nothing calls this directly

Calls 2

boolPtrFunction · 0.85
ErrorMethod · 0.45

Tested by

no test coverage detected