Source file src/testing/synctest/helper_test.go

     1  // Copyright 2025 The Go Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  package synctest_test
     6  
     7  import "testing"
     8  
     9  // helperLog is a t.Helper which logs.
    10  // Since it is a helper, the log prefix should contain
    11  // the caller's file, not helper_test.go.
    12  func helperLog(t *testing.T, s string) {
    13  	t.Helper()
    14  	t.Log(s)
    15  }
    16  

View as plain text