facebook / fbthrift

Facebook's branch of Apache Thrift, including a new C++ server.
Apache License 2.0
2.55k stars 607 forks source link

add go.mod file #568

Closed awalterschulze closed 10 months ago

awalterschulze commented 10 months ago

Add go.mod file

Also:

TestPlan

Manually reproduce testplan of .circleci/config.yml

$ cd github.com/facebook/fbthrift/thrift/lib/go/thrift
$ go test -v ./...
=== RUN   TestApplicationException
--- PASS: TestApplicationException (0.00s)
=== RUN   TestApplicationExceptionCause
--- PASS: TestApplicationExceptionCause (0.00s)
=== RUN   TestReadWriteBinaryProtocol
--- PASS: TestReadWriteBinaryProtocol (0.00s)
=== RUN   TestSkipUnknownTypeBinaryProtocol
--- PASS: TestSkipUnknownTypeBinaryProtocol (0.01s)
=== RUN   TestInitialAllocationMapBinaryProtocol
--- PASS: TestInitialAllocationMapBinaryProtocol (0.00s)
=== RUN   TestInitialAllocationListBinaryProtocol
--- PASS: TestInitialAllocationListBinaryProtocol (0.00s)
=== RUN   TestInitialAllocationSetBinaryProtocol
--- PASS: TestInitialAllocationSetBinaryProtocol (0.00s)
=== RUN   TestBufferedTransport
--- PASS: TestBufferedTransport (0.00s)
=== RUN   TestSendMsgError
--- PASS: TestSendMsgError (0.00s)
=== RUN   TestRecvMsgError
--- PASS: TestRecvMsgError (0.00s)
=== RUN   TestReadWriteCompactProtocol
--- PASS: TestReadWriteCompactProtocol (0.02s)
=== RUN   TestInitialAllocationMapCompactProtocol
--- PASS: TestInitialAllocationMapCompactProtocol (0.00s)
=== RUN   TestInitialAllocationListCompactProtocol
--- PASS: TestInitialAllocationListCompactProtocol (0.00s)
=== RUN   TestInitialAllocationSetCompactProtocol
--- PASS: TestInitialAllocationSetCompactProtocol (0.00s)
=== RUN   TestInitialAllocationMapCompactProtocolLimitedR
--- PASS: TestInitialAllocationMapCompactProtocolLimitedR (0.00s)
=== RUN   TestPrependError
--- PASS: TestPrependError (0.00s)
=== RUN   TestFramedTransport
--- PASS: TestFramedTransport (0.00s)
=== RUN   TestHeaderProtocolHeaders
--- PASS: TestHeaderProtocolHeaders (0.00s)
=== RUN   TestHeaderDeserSer
--- PASS: TestHeaderDeserSer (0.00s)
=== RUN   TestHeaderTransport
--- PASS: TestHeaderTransport (0.00s)
=== RUN   TestHeaderFramedBinary
--- PASS: TestHeaderFramedBinary (0.00s)
=== RUN   TestHeaderFramedCompact
--- PASS: TestHeaderFramedCompact (0.00s)
=== RUN   TestHeaderProtoID
--- PASS: TestHeaderProtoID (0.00s)
=== RUN   TestHeaderHeaders
--- PASS: TestHeaderHeaders (0.00s)
=== RUN   TestHeaderRWSmall
--- PASS: TestHeaderRWSmall (0.00s)
=== RUN   TestHeaderZlib
--- PASS: TestHeaderZlib (0.00s)
=== RUN   TestHeaderTransportRWMultiple
--- PASS: TestHeaderTransportRWMultiple (0.00s)
=== RUN   TestHTTPClient
--- PASS: TestHTTPClient (0.00s)
=== RUN   TestHTTPClientHeaders
--- PASS: TestHTTPClientHeaders (0.00s)
=== RUN   TestHTTPCustomClient
--- PASS: TestHTTPCustomClient (0.00s)
=== RUN   TestHTTPCustomClientPackageScope
--- PASS: TestHTTPCustomClientPackageScope (0.00s)
=== RUN   TestInterceptorWrapperNilFunctionContext
--- PASS: TestInterceptorWrapperNilFunctionContext (0.00s)
=== RUN   TestStreamTransport
--- PASS: TestStreamTransport (0.00s)
=== RUN   TestStreamTransportOpenClose
--- PASS: TestStreamTransportOpenClose (0.00s)
=== RUN   TestWriteJSONProtocolBool
--- PASS: TestWriteJSONProtocolBool (0.00s)
=== RUN   TestReadJSONProtocolBool
--- PASS: TestReadJSONProtocolBool (0.00s)
=== RUN   TestWriteJSONProtocolByte
--- PASS: TestWriteJSONProtocolByte (0.00s)
=== RUN   TestReadJSONProtocolByte
--- PASS: TestReadJSONProtocolByte (0.00s)
=== RUN   TestWriteJSONProtocolI16
--- PASS: TestWriteJSONProtocolI16 (0.00s)
=== RUN   TestReadJSONProtocolI16
--- PASS: TestReadJSONProtocolI16 (0.00s)
=== RUN   TestWriteJSONProtocolI32
--- PASS: TestWriteJSONProtocolI32 (0.00s)
=== RUN   TestReadJSONProtocolI32
--- PASS: TestReadJSONProtocolI32 (0.00s)
=== RUN   TestWriteJSONProtocolI64
--- PASS: TestWriteJSONProtocolI64 (0.00s)
=== RUN   TestReadJSONProtocolI64
--- PASS: TestReadJSONProtocolI64 (0.00s)
=== RUN   TestWriteJSONProtocolDouble
--- PASS: TestWriteJSONProtocolDouble (0.00s)
=== RUN   TestReadJSONProtocolDouble
--- PASS: TestReadJSONProtocolDouble (0.00s)
=== RUN   TestWriteJSONProtocolFloat
--- PASS: TestWriteJSONProtocolFloat (0.00s)
=== RUN   TestReadJSONProtocolFloat
--- PASS: TestReadJSONProtocolFloat (0.00s)
=== RUN   TestWriteJSONProtocolString
--- PASS: TestWriteJSONProtocolString (0.00s)
=== RUN   TestReadJSONProtocolString
--- PASS: TestReadJSONProtocolString (0.00s)
=== RUN   TestWriteJSONProtocolBinary
--- PASS: TestWriteJSONProtocolBinary (0.00s)
=== RUN   TestReadJSONProtocolBinary
--- PASS: TestReadJSONProtocolBinary (0.00s)
=== RUN   TestWriteJSONProtocolList
--- PASS: TestWriteJSONProtocolList (0.00s)
=== RUN   TestWriteJSONProtocolSet
--- PASS: TestWriteJSONProtocolSet (0.00s)
=== RUN   TestWriteJSONProtocolMap
--- PASS: TestWriteJSONProtocolMap (0.00s)
=== RUN   TestMemoryBuffer
--- PASS: TestMemoryBuffer (0.00s)
=== RUN   TestEnsureTransportsAreRich
--- PASS: TestEnsureTransportsAreRich (0.00s)
=== RUN   TestReadByte
--- PASS: TestReadByte (0.00s)
=== RUN   TestSerializer
--- PASS: TestSerializer (0.00s)
=== RUN   TestSocketIsntListeningAfterInterrupt
--- PASS: TestSocketIsntListeningAfterInterrupt (0.00s)
=== RUN   TestNothing
--- PASS: TestNothing (0.00s)
=== RUN   TestWriteSimpleJSONProtocolBool
--- PASS: TestWriteSimpleJSONProtocolBool (0.00s)
=== RUN   TestReadSimpleJSONProtocolBool
--- PASS: TestReadSimpleJSONProtocolBool (0.00s)
=== RUN   TestWriteSimpleJSONProtocolByte
--- PASS: TestWriteSimpleJSONProtocolByte (0.00s)
=== RUN   TestReadSimpleJSONProtocolByte
--- PASS: TestReadSimpleJSONProtocolByte (0.00s)
=== RUN   TestWriteSimpleJSONProtocolI16
--- PASS: TestWriteSimpleJSONProtocolI16 (0.00s)
=== RUN   TestReadSimpleJSONProtocolI16
--- PASS: TestReadSimpleJSONProtocolI16 (0.00s)
=== RUN   TestWriteSimpleJSONProtocolI32
--- PASS: TestWriteSimpleJSONProtocolI32 (0.00s)
=== RUN   TestReadSimpleJSONProtocolI32
--- PASS: TestReadSimpleJSONProtocolI32 (0.00s)
=== RUN   TestReadSimpleJSONProtocolI32Null
--- PASS: TestReadSimpleJSONProtocolI32Null (0.00s)
=== RUN   TestWriteSimpleJSONProtocolI64
--- PASS: TestWriteSimpleJSONProtocolI64 (0.00s)
=== RUN   TestReadSimpleJSONProtocolI64
--- PASS: TestReadSimpleJSONProtocolI64 (0.00s)
=== RUN   TestReadSimpleJSONProtocolI64Null
--- PASS: TestReadSimpleJSONProtocolI64Null (0.00s)
=== RUN   TestWriteSimpleJSONProtocolDouble
--- PASS: TestWriteSimpleJSONProtocolDouble (0.00s)
=== RUN   TestReadSimpleJSONProtocolDouble
--- PASS: TestReadSimpleJSONProtocolDouble (0.00s)
=== RUN   TestWriteSimpleJSONProtocolFloat
--- PASS: TestWriteSimpleJSONProtocolFloat (0.00s)
=== RUN   TestReadSimpleJSONProtocolFloat
--- PASS: TestReadSimpleJSONProtocolFloat (0.00s)
=== RUN   TestWriteSimpleJSONProtocolString
--- PASS: TestWriteSimpleJSONProtocolString (0.00s)
=== RUN   TestReadSimpleJSONProtocolString
--- PASS: TestReadSimpleJSONProtocolString (0.00s)
=== RUN   TestReadSimpleJSONProtocolStringNull
--- PASS: TestReadSimpleJSONProtocolStringNull (0.00s)
=== RUN   TestWriteSimpleJSONProtocolBinary
--- PASS: TestWriteSimpleJSONProtocolBinary (0.00s)
=== RUN   TestReadSimpleJSONProtocolBinary
--- PASS: TestReadSimpleJSONProtocolBinary (0.00s)
=== RUN   TestReadSimpleJSONProtocolBinaryNull
--- PASS: TestReadSimpleJSONProtocolBinaryNull (0.00s)
=== RUN   TestWriteSimpleJSONProtocolList
--- PASS: TestWriteSimpleJSONProtocolList (0.00s)
=== RUN   TestWriteSimpleJSONProtocolSet
--- PASS: TestWriteSimpleJSONProtocolSet (0.00s)
=== RUN   TestWriteSimpleJSONProtocolMap
--- PASS: TestWriteSimpleJSONProtocolMap (0.00s)
=== RUN   TestWriteSimpleJSONProtocolSafePeek
--- PASS: TestWriteSimpleJSONProtocolSafePeek (0.00s)
=== RUN   TestNewSocket
--- PASS: TestNewSocket (0.00s)
=== RUN   TestExceptionTimeout
--- PASS: TestExceptionTimeout (0.00s)
=== RUN   TestExceptionEOF
--- PASS: TestExceptionEOF (0.00s)
=== RUN   TestTransportExceptionUnwrap
--- PASS: TestTransportExceptionUnwrap (0.00s)
=== RUN   TestZlibTransport
--- PASS: TestZlibTransport (0.00s)
PASS
ok      github.com/facebook/fbthrift/thrift/lib/go/thrift 
$ go vet
awalterschulze commented 10 months ago

Since linux and mac passes. Can we merge this? Windows was broken on the main branch anyway

facebook-github-bot commented 10 months ago

@thedavekwon has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.