Codebase list golang-github-vbauerster-mpb / 49846ca
speed_test: add "%f" case Vladimir Bauer 3 years ago
1 changed file(s) with 16 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
3030 expected: "0b/s",
3131 },
3232 {
33 name: "SizeB1024(0):%f:0b",
34 unit: SizeB1024(0),
35 fmt: "%f",
36 current: 0,
37 elapsed: time.Duration(0),
38 expected: "0.000000b/s",
39 },
40 {
3341 name: "SizeB1024(0):% .2f:0b",
3442 unit: SizeB1024(0),
3543 fmt: "% .2f",
158166 expected: "0b/s",
159167 },
160168 {
169 name: "SizeB1000(0):%f:0b",
170 unit: SizeB1000(0),
171 fmt: "%f",
172 current: 0,
173 elapsed: time.Duration(0),
174 expected: "0.000000b/s",
175 },
176 {
161177 name: "SizeB1000(0):% .2f:0b",
162178 unit: SizeB1000(0),
163179 fmt: "% .2f",