blob: 8f6b15eff12fac46e288e0fe2a48024ffb890b9e [file] [log] [blame]
Jiri Simsa5293dcb2014-05-10 09:56:38 -07001package test_base
2
3type Struct struct {
4 X,Y int32
5}
6
7type TypeTester interface {
8 // Methods to test support for generic types.
Todd Wang383e88c2014-12-18 01:52:34 -08009 EchoBool(I1 bool) (O1 bool | error)
10 EchoFloat32(I1 float32) (O1 float32 | error)
11 EchoFloat64(I1 float64) (O1 float64 | error)
12 EchoInt32(I1 int32) (O1 int32 | error)
13 EchoInt64(I1 int64) (O1 int64 | error)
14 EchoString(I1 string) (O1 string | error)
15 EchoByte(I1 byte) (O1 byte | error)
16 EchoUInt32(I1 uint32) (O1 uint32 | error)
17 EchoUInt64(I1 uint64) (O1 uint64 | error)
Jiri Simsa5293dcb2014-05-10 09:56:38 -070018
19 // Methods to test support for composite types.
Todd Wang383e88c2014-12-18 01:52:34 -080020 InputArray(I1 [2]byte) error
21 InputMap(I1 map[byte]byte) error
22 InputSlice(I1 []byte) error
23 InputStruct(I1 Struct) error
24 OutputArray() (O1 [2]byte | error)
25 OutputMap() (O1 map[byte]byte | error)
26 OutputSlice() (O1 []byte | error)
27 OutputStruct() (O1 Struct | error)
Jiri Simsa5293dcb2014-05-10 09:56:38 -070028
29 // Methods to test support for different number of arguments.
30 NoArguments() error
Todd Wang383e88c2014-12-18 01:52:34 -080031 MultipleArguments(I1, I2 int32) (O1, O2 int32 | error)
Jiri Simsa5293dcb2014-05-10 09:56:38 -070032
33 // Methods to test support for streaming.
34 StreamingOutput(NumStreamItems int32, StreamItem bool) stream<_, bool> error
35}