github.com/yandex/pandora@v0.5.32/lib/ioutil2/io_mocks_test.go (about)

     1  package ioutil2
     2  
     3  import "io"
     4  
     5  // File for generation mocks from io package.
     6  // NOTE: remove _test filename suffix before run mockery.
     7  
     8  //go:generate mockery --name=Closer --case=underscore --outpkg=iomock
     9  
    10  type Closer interface {
    11  	io.Closer
    12  }
    13  
    14  //go:generate mockery --name=Writer --case=underscore --outpkg=iomock
    15  
    16  type Writer interface {
    17  	io.Writer
    18  }
    19  
    20  //go:generate mockery --name=Reader --case=underscore --outpkg=iomock
    21  
    22  type Reader interface {
    23  	io.Writer
    24  }
    25  
    26  //go:generate mockery --name=ReadCloser --case=underscore --outpkg=iomock
    27  
    28  type ReadCloser interface {
    29  	io.ReadCloser
    30  }
    31  
    32  //go:generate mockery --name=WriteCloser --case=underscore --outpkg=iomock
    33  
    34  type WriteCloser interface {
    35  	io.WriteCloser
    36  }