github.com/goplus/gop@v1.2.6/x/jsonrpc2/jsonrpc2test/jsonrpc2_test.go (about)

     1  // Copyright 2018 The Go Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  package jsonrpc2test_test
     6  
     7  import (
     8  	"context"
     9  	"testing"
    10  
    11  	"github.com/goplus/gop/x/jsonrpc2"
    12  	"github.com/goplus/gop/x/jsonrpc2/jsonrpc2test"
    13  	"github.com/goplus/gop/x/jsonrpc2/jsonrpc2test/cases"
    14  )
    15  
    16  func TestNetPipe(t *testing.T) {
    17  	jsonrpc2.SetDebug(jsonrpc2.DbgFlagCall)
    18  	ctx := context.Background()
    19  	listener := jsonrpc2test.NetPipeListener()
    20  	cases.Test(t, ctx, listener, jsonrpc2.HeaderFramer(), true)
    21  }