Skip to content

Commit 754f1ce

Browse files
committed
internal/caller: improve tests
1 parent f9d8b4f commit 754f1ce

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

internal/caller/caller_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ func TestMultipleCallersInForLoop(t *testing.T) {
2525
t.Errorf("Caller() returned different values: %d and %d", pc, pc2)
2626
}
2727
}
28+
if pc == 0 {
29+
t.Errorf("Caller() returned 0")
30+
}
2831
}
2932

3033
func TestMultipleCallersOnOneLine(t *testing.T) {

0 commit comments

Comments
 (0)