src.elv.sh@v0.21.0-dev.0.20240515223629-06979efb9a2a/pkg/testutil/testutil.go (about)

     1  // Package testutil contains common test utilities.
     2  package testutil
     3  
     4  // Cleanuper wraps the Cleanup method. It is a subset of [testing.TB], thus
     5  // satisfied by [*testing.T] and [*testing.B].
     6  type Cleanuper interface {
     7  	Cleanup(func())
     8  }
     9  
    10  // Skipper wraps the Skipf method. It is a subset of [testing.TB], thus
    11  // satisfied by [*testing.T] and [*testing.B].
    12  type Skipper interface {
    13  	Skipf(format string, args ...any)
    14  }