github.com/joomcode/pegomock@v2.9.2-0.20220414140958-14f53b6b2a6c+incompatible/test_interface/display.go (about)

     1  // Copyright 2015 Peter Goetz
     2  //
     3  // Licensed under the Apache License, Version 2.0 (the "License");
     4  // you may not use this file except in compliance with the License.
     5  // You may obtain a copy of the License at
     6  //
     7  //     http://www.apache.org/licenses/LICENSE-2.0
     8  //
     9  // Unless required by applicable law or agreed to in writing, software
    10  // distributed under the License is distributed on an "AS IS" BASIS,
    11  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    12  // See the License for the specific language governing permissions and
    13  // limitations under the License.
    14  
    15  package test_interface
    16  
    17  import (
    18  	"io"
    19  	"net/http"
    20  	"time"
    21  )
    22  
    23  // Display is some sample interface to be mocked.
    24  type Display interface {
    25  	Flash(_param0 string, _param1 int)
    26  	Show(_param0 string)
    27  	SomeValue() string
    28  	MultipleValues() (string, int, float32)
    29  	MultipleParamsAndReturnValue(s string, i int) string
    30  	ArrayParam(array []string)
    31  	MapParam(m map[string]http.Request)
    32  	FloatParam(float32)
    33  	InterfaceParam(interface{})
    34  	InterfaceReturnValue() interface{}
    35  	ErrorReturnValue() error
    36  	ErrorParam(e error)
    37  	NetHttpRequestParam(r http.Request)
    38  	NetHttpRequestPtrParam(r *http.Request)
    39  	FuncReturnValue() func()
    40  	VariadicParam(v ...string)
    41  	NormalAndVariadicParam(s string, i int, v ...string)
    42  	CamelCaseTypeParam(camelCaseParam io.ReadCloser)
    43  	MapOfStringToInterfaceParam(m map[string]interface{})
    44  	UseTime(t time.Time)
    45  	ChanParams(<-chan string, chan<- error)
    46  	ChanReturnValues() (<-chan string, chan<- error)
    47  	VariadicWithNonPrimitiveType(m ...map[int]int)
    48  	MapWithRedundantImports(m map[http.File]http.File)
    49  	MapOfStringToEmptyUnnamedStruct(m map[string]struct{})
    50  }