Debian Codegraph @

codec/py_test.go

raw symbols SCIP
1 // Copyright (c) 2012-2020 Ugorji Nwoke. All rights reserved.
2 // Use of this source code is governed by a MIT license found in the LICENSE file.
3
4 //go:build x
5 // +build x
6
7 package codec
8
9 // These tests are used to verify msgpack and cbor implementations against their python libraries.
10 // If you have the library installed, you can enable the tests back by running: go test -tags=x .
11 // Look at test.py for how to setup your environment.
12 //
13 // Also, name all tests here with suffix X, so that we can filter to run only these
14 // using: go test -tags x -run '.*X$'
15
16 import (
17 "testing"
18 )
19
20 func TestMsgpackPythonGenStreamsX(t *testing.T) {
21 doTestPythonGenStreams(t, testMsgpackH)
22 }
23
24 func TestCborPythonGenStreamsX(t *testing.T) {
25 doTestPythonGenStreams(t, testCborH)
26 }
27
28 func TestMsgpackRpcSpecGoClientToPythonSvcX(t *testing.T) {
29 doTestMsgpackRpcSpecGoClientToPythonSvc(t, testMsgpackH)
30 }
31
32 func TestMsgpackRpcSpecPythonClientToGoSvcX(t *testing.T) {
33 doTestMsgpackRpcSpecPythonClientToGoSvc(t, testMsgpackH)
34 }