Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestMalformedOutput (0.28 sec)

  1. src/net/rpc/jsonrpc/all_test.go

    	}
    }
    
    func TestMalformedInput(t *testing.T) {
    	cli, srv := net.Pipe()
    	go cli.Write([]byte(`{id:1}`)) // invalid json
    	ServeConn(srv)                 // must return, not loop
    }
    
    func TestMalformedOutput(t *testing.T) {
    	cli, srv := net.Pipe()
    	go srv.Write([]byte(`{"id":0,"result":null,"error":null}`))
    	go io.ReadAll(srv)
    
    	client := NewClient(cli)
    	defer client.Close()
    
    	args := &Args{7, 8}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 07 01:09:53 UTC 2022
    - 7.8K bytes
    - Viewed (0)
Back to top