MCPcopy Create free account
hub / github.com/dave/blast / TestStats_String

Function TestStats_String

blaster/stats_test.go:8–140  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

6)
7
8func TestStats_String(t *testing.T) {
9 s := Stats{
10 ConcurrencyCurrent: 1,
11 ConcurrencyMaximum: 2,
12 Skipped: 3,
13 All: &Segment{
14 DesiredRate: 4,
15 ActualRate: 5,
16 AverageConcurrency: 6,
17 Duration: time.Second * 7,
18 Summary: &Total{
19 Started: 8,
20 Finished: 9,
21 Success: 10,
22 Fail: 11,
23 Mean: time.Millisecond * 12,
24 NinetyFifth: time.Millisecond * 13,
25 },
26 Status: []*Status{
27 {
28 Status: "a",
29 Count: 14,
30 Fraction: 0.15,
31 Mean: time.Millisecond * 16,
32 NinetyFifth: time.Millisecond * 17,
33 },
34 {
35 Status: "b",
36 Count: 18,
37 Fraction: 0.19,
38 Mean: time.Millisecond * 20,
39 NinetyFifth: time.Millisecond * 21,
40 },
41 },
42 },
43 Segments: []*Segment{
44 {
45 DesiredRate: 22,
46 ActualRate: 23,
47 AverageConcurrency: 24,
48 Duration: time.Second * 125,
49 Summary: &Total{
50 Started: 26,
51 Finished: 27,
52 Success: 28,
53 Fail: 29,
54 Mean: time.Millisecond * 30,
55 NinetyFifth: time.Millisecond * 31,
56 },
57 Status: []*Status{
58 {
59 Status: "a",
60 Count: 32,
61 Fraction: 0.33,
62 Mean: time.Millisecond * 34,
63 NinetyFifth: time.Millisecond * 35,
64 },
65 {

Callers

nothing calls this directly

Calls 1

StringMethod · 0.95

Tested by

no test coverage detected