mirror of
https://github.com/zrepl/zrepl.git
synced 2024-11-28 19:34:58 +01:00
25 lines
412 B
Go
25 lines
412 B
Go
|
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)
|
||
|
}
|