- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for replyMap (0.35 sec)
-
src/net/rpc/jsonrpc/all_test.go
client := NewClient(cli) defer client.Close() // Map arg := 7 replyMap := map[int]int{} err := client.Call("BuiltinTypes.Map", arg, &replyMap) if err != nil { t.Errorf("Map: expected no error but got string %q", err.Error()) } if replyMap[arg] != arg { t.Errorf("Map: expected %d got %d", arg, replyMap[arg]) } // Slice replySlice := []int{}
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Sep 07 01:09:53 UTC 2022 - 7.8K bytes - Viewed (0) -
src/net/rpc/server_test.go
} defer client.Close() // Map args := &Args{7, 8} replyMap := map[int]int{} err = client.Call("BuiltinTypes.Map", args, &replyMap) if err != nil { t.Errorf("Map: expected no error but got string %q", err.Error()) } if replyMap[args.A] != args.B { t.Errorf("Map: expected %d got %d", args.B, replyMap[args.A]) } // Slice args = &Args{7, 8} replySlice := []int{}
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jul 18 05:23:29 UTC 2023 - 19K bytes - Viewed (0)