From 7e4c8cece913eb1cd6db855b5e1ad996d664c7ae Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Wed, 15 Mar 2023 17:13:24 +0100 Subject: [PATCH] mark helper as such --- lib_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib_test.go b/lib_test.go index 1d2fb8d..c71f25b 100644 --- a/lib_test.go +++ b/lib_test.go @@ -39,7 +39,8 @@ func TestCheckGuess(t *testing.T) { }) } -func assertCheckGuess(t *testing.T, guess, random int, wantStatus string, wantWon bool) { +func assertCheckGuess(t testing.TB, guess, random int, wantStatus string, wantWon bool) { + t.Helper() status, won := CheckGuess(guess, random) if status != wantStatus { t.Errorf("got %q want %q", status, wantStatus)