add platformtest: infrastructure for ZFS compatiblity testing
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
package platformtest
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
||||
type Context struct {
|
||||
context.Context
|
||||
RootDataset string
|
||||
}
|
||||
|
||||
var _ assert.TestingT = (*Context)(nil)
|
||||
var _ require.TestingT = (*Context)(nil)
|
||||
|
||||
func (c *Context) Errorf(format string, args ...interface{}) {
|
||||
getLog(c).Printf(format, args...)
|
||||
}
|
||||
|
||||
func (c *Context) FailNow() {
|
||||
panic(nil)
|
||||
}
|
||||
Reference in New Issue
Block a user