Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions exec_error_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,10 @@ func TestExtractExitCode_FromGenericError(t *testing.T) {
t.Fatalf("expected fallback exit code 1, got %d", code)
}
}

func TestExtractExitCode_Nil(t *testing.T) {
code := extractExitCode(nil)
if code != 0 {
t.Fatalf("expected exit code 0 for nil error, got %d", code)
}
}