MCPcopy Index your code
hub / github.com/keploy/keploy / TestRotateDebugFileForTestSet_NilSinkIsSafe

Function TestRotateDebugFileForTestSet_NilSinkIsSafe

utils/log/logger_test.go:375–380  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

373}
374
375func TestRotateDebugFileForTestSet_NilSinkIsSafe(t *testing.T) {
376 SetDebugFileSink(nil)
377 if err := RotateDebugFileForTestSet("anything"); err != nil {
378 t.Errorf("RotateDebugFileForTestSet with nil sink: got %v, want nil", err)
379 }
380}
381
382// TestDebugFileSink_SurvivesAddMode is the regression test for the
383// empty-per-test-set-file bug: AddMode rebuilds the core from scratch

Callers

nothing calls this directly

Calls 2

SetDebugFileSinkFunction · 0.85

Tested by

no test coverage detected