github.com/markusbkk/elvish@v0.0.0-20231204143114-91dc52438621/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  }