nanomsg.org/go/mangos/v2@v2.0.9-0.20200203084354-8a092611e461/transport/inproc/inproc_test.go (about) 1 // Copyright 2019 The Mangos Authors 2 // 3 // Licensed under the Apache License, Version 2.0 (the "License"); 4 // you may not use 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 inproc 16 17 import ( 18 "testing" 19 20 . "nanomsg.org/go/mangos/v2/internal/test" 21 ) 22 23 var tran = Transport 24 25 func TestInpOptions(t *testing.T) { 26 TranVerifyInvalidOption(t, tran) 27 } 28 29 func TestInpScheme(t *testing.T) { 30 TranVerifyScheme(t, tran) 31 } 32 func TestInpAcceptWithoutListen(t *testing.T) { 33 TranVerifyAcceptWithoutListen(t, tran) 34 } 35 func TestInpListenAndAccept(t *testing.T) { 36 TranVerifyListenAndAccept(t, tran, nil, nil) 37 } 38 func TestInpDuplicateListen(t *testing.T) { 39 TranVerifyDuplicateListen(t, tran, nil) 40 } 41 func TestInpConnectionRefused(t *testing.T) { 42 TranVerifyConnectionRefused(t, tran, nil) 43 } 44 func TestInpHandshake(t *testing.T) { 45 TranVerifyHandshakeFail(t, tran, nil, nil) 46 } 47 func TestInpSendRecv(t *testing.T) { 48 TranVerifySendRecv(t, tran, nil, nil) 49 } 50 func TestInpListenerClosed(t *testing.T) { 51 TranVerifyListenerClosed(t, tran, nil) 52 } 53 func TestInpPipeOptions(t *testing.T) { 54 TranVerifyPipeOptions(t, tran, nil, nil) 55 } 56 func TestInpMessageSize(t *testing.T) { 57 TranVerifyMessageSizes(t, tran, nil, nil) 58 } 59 func TestInpMessageHeader(t *testing.T) { 60 TranVerifyMessageHeader(t, tran, nil, nil) 61 }