func TestRPCError(t *testing.T) {
	t.Parallel()

	tests := []struct {
		in   *btcjson.RPCError
		want string
	}{
		{
			btcjson.ErrRPCInvalidRequest,
			"-32600: Invalid request",
		},
		{
			btcjson.ErrRPCMethodNotFound,
			"-32601: Method not found",
		},
	}

	t.Logf("Running %d tests", len(tests))
	for i, test := range tests {
		result := test.in.Error()
		if result != test.want {
			t.Errorf("Error #%d\n got: %s want: %s", i, result,
				test.want)
			continue
		}
	}
}
// TestRPCError tests the error output for the RPCError type.
TestRPCError tests the error output for the RPCError type.
// TestRPCError tests the error output for the RPCError type .
func TestRPCError(t *testing.T) {
	t.Parallel()
	tests := []struct {
		in   *btcjson.RPCError
		want string
	}{
		{
			btcjson.ErrRPCInvalidRequest,
			"-32600: Invalid request",
		},
		{
			btcjson.ErrRPCMethodNotFound,
			"-32601: Method not found",
		},
	}
	t.Logf("Running %d tests", len(tests))
	for i, test := range tests {
		result := test.in.Error()
		if result != test.want {
			t.Errorf("Error #%d\n got: %s want: %s", i, result,
				test.want)
			continue
		}
	}
}
func TestRPCError ( t * testing . T ) { t . Parallel ( ) tests := [ ] struct { in * btcjson . RPCError want string } { { btcjson . ErrRPCInvalidRequest , " " , } , { btcjson . ErrRPCMethodNotFound , " " , } , } t . Logf ( " " , len ( tests ) ) for i , test := range tests { result := test . in . Error ( ) if result != test . want { t . Errorf ( " \n " , i , result , test . want ) continue } } }
TestRPCError tests the error output for the RPCError type.
TestRPCError tests the error output for the RPCError type .