test: add t.Helper() calls to test helper functions (#7351)

This commit is contained in:
Ville Vesilehto
2025-06-05 00:36:04 +03:00
committed by GitHub
parent b4abdcacf0
commit 9f9aed31cf
30 changed files with 52 additions and 13 deletions

View File

@@ -43,6 +43,7 @@ func TestMultipleListenerMock(t *testing.T) {
}
func testListenersCalled(t *testing.T, listenerNames []string, outputs []string) {
t.Helper()
for _, name := range listenerNames {
err := RegisterListener(NewMockListener(name))
if err != nil {

View File

@@ -8,6 +8,7 @@ import (
)
func getPEMFiles(t *testing.T) (cert, key, ca string) {
t.Helper()
tempDir, err := test.WritePEMFiles(t)
if err != nil {
t.Fatalf("Could not write PEM files: %s", err)