github.com/relnod/pegomock@v2.0.1+incompatible/modelgen/test_data/default_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 "net/http" 18 19 // Display is some sample interface to be mocked. 20 type Display interface { 21 Flash(_param0 string, _param1 int) 22 Show(_param0 string) 23 SomeValue() string 24 MultipleValues() (string, int, float32) 25 MultipleParamsAndReturnValue(s string, i int) string 26 ArrayParam(array []string) 27 FloatParam(float32) 28 InterfaceParam(interface{}) 29 InterfaceReturnValue() interface{} 30 ErrorReturnValue() error 31 ErrorParam(e error) 32 NetHttpRequestParam(r http.Request) 33 NetHttpRequestPtrParam(r *http.Request) 34 FuncReturnValue() func() 35 VariadicParam(v ...string) 36 NormalAndVariadicParam(s string, i int, v ...string) 37 }