mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
21 lines
462 B
Go
21 lines
462 B
Go
package runtime
|
|
|
|
import (
|
|
"io"
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestFileImplementsIOReader(t *testing.T) {
|
|
var file interface{} = &File{}
|
|
expected := "that File implements io.Reader"
|
|
assert.Implements(t, new(io.Reader), file, expected)
|
|
}
|
|
|
|
func TestFileImplementsIOReadCloser(t *testing.T) {
|
|
var file interface{} = &File{}
|
|
expected := "that File implements io.ReadCloser"
|
|
assert.Implements(t, new(io.ReadCloser), file, expected)
|
|
}
|