NewPayload creates a payload with the given type and size.
(t testpb.PayloadType, size int)
| 60 | |
| 61 | // NewPayload creates a payload with the given type and size. |
| 62 | func NewPayload(t testpb.PayloadType, size int) *testpb.Payload { |
| 63 | p := new(testpb.Payload) |
| 64 | setPayload(p, t, size) |
| 65 | return p |
| 66 | } |
| 67 | |
| 68 | type testServer struct { |
| 69 | testgrpc.UnimplementedBenchmarkServiceServer |
no test coverage detected