Added test for ping response
Created by: ecoulson
Notes
- Added tests for ping response
- Added clock struct for testing
Test
=== RUN Test_CreateErrorResponse --- PASS: Test_CreateErrorResponse (0.00s) === RUN Test_CreateErrorResponseWithNilError --- PASS: Test_CreateErrorResponseWithNilError (0.00s) === RUN Test_CreateResponse --- PASS: Test_CreateResponse (0.00s) === RUN Test_CreateResponseWithNilClock --- PASS: Test_CreateResponseWithNilClock (0.00s) === RUN Test_CreateResponseWithNilInvalidTime --- PASS: Test_CreateResponseWithNilInvalidTime (0.00s) === RUN Test_CreatePingService_ShouldCreatePingService --- PASS: Test_CreatePingService_ShouldCreatePingService (0.00s) === RUN Test_PingService_PingService --- PASS: Test_PingService_PingService (0.00s) === RUN Test_CreateQuitCommand --- PASS: Test_CreateQuitCommand (0.00s) === RUN Test_ExecuteQuitCommand Shutting down node... --- PASS: Test_ExecuteQuitCommand (0.00s) === RUN Test_CreateQuitParser --- PASS: Test_CreateQuitParser (0.00s) === RUN Test_ParseQuitCommand --- PASS: Test_ParseQuitCommand (0.00s) === RUN Test_ParseQuitCommandWithIncorrectCommand --- PASS: Test_ParseQuitCommandWithIncorrectCommand (0.00s) === RUN Test_ParseQuitCommandWithNilCommand --- PASS: Test_ParseQuitCommandWithNilCommand (0.00s) === RUN Test_ParseQuitCommandWithIncorrectArgumentsSize --- PASS: Test_ParseQuitCommandWithIncorrectArgumentsSize (0.00s) === RUN Test_CreateTerminal_NilInput --- PASS: Test_CreateTerminal_NilInput (0.00s) === RUN Test_CreateTerminal_NilHost --- PASS: Test_CreateTerminal_NilHost (0.00s) === RUN Test_CreateTerminal_NilContext --- PASS: Test_CreateTerminal_NilContext (0.00s) === RUN Test_CreateTerminal_NilLogger --- PASS: Test_CreateTerminal_NilLogger (0.00s) === RUN Test_CreateUnknownCommand --- PASS: Test_CreateUnknownCommand (0.00s) === RUN Test_CreateUnknownCommandWithNilArray --- PASS: Test_CreateUnknownCommandWithNilArray (0.00s) === RUN Test_ExecuteUnknownCommand Unknown command: "unknown". Type help for help --- PASS: Test_ExecuteUnknownCommand (0.00s) === RUN Test_UnkownCommand --- PASS: Test_UnkownCommand (0.00s) === RUN Test_ShouldParseUnknownCommand --- PASS: Test_ShouldParseUnknownCommand (0.00s) === RUN Test_CreateWhoAmICommandWithValidHostNode --- PASS: Test_CreateWhoAmICommandWithValidHostNode (0.00s) === RUN Test_CreateCommandWithNilHostNode --- PASS: Test_CreateCommandWithNilHostNode (0.00s) === RUN Test_ExecuteWhoAmICommand /ip4/127.0.0.1/tcp/56002/p2p/QmXxBMHw3HGRVfgH8TBKsgeQmDZ2BtmWsLzrfDKF1jw9Kk --- PASS: Test_ExecuteWhoAmICommand (0.00s) === RUN Test_CreateWhoAmIParserWithValidNode --- PASS: Test_CreateWhoAmIParserWithValidNode (0.00s) === RUN Test_CreateWhoAmIParserWithNilNode --- PASS: Test_CreateWhoAmIParserWithNilNode (0.00s) === RUN Test_ParseWhoAmICommand --- PASS: Test_ParseWhoAmICommand (0.00s) PASS ok github.com/ecoulson/Privacy 0.222s