...

Source file src/github.com/go-openapi/swag/file_test.go

Documentation: github.com/go-openapi/swag

     1  package swag
     2  
     3  import (
     4  	"io"
     5  	"testing"
     6  
     7  	"github.com/stretchr/testify/assert"
     8  )
     9  
    10  func TestFileImplementsIOReader(t *testing.T) {
    11  	var file interface{} = &File{}
    12  	expected := "that File implements io.Reader"
    13  	assert.Implements(t, new(io.Reader), file, expected)
    14  }
    15  
    16  func TestFileImplementsIOReadCloser(t *testing.T) {
    17  	var file interface{} = &File{}
    18  	expected := "that File implements io.ReadCloser"
    19  	assert.Implements(t, new(io.ReadCloser), file, expected)
    20  }
    21  

View as plain text