OLD | NEW |
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 // | 4 // |
5 | 5 |
6 import 'dart:profiler'; | 6 import 'dart:developer'; |
7 import 'package:expect/expect.dart'; | 7 import 'package:expect/expect.dart'; |
8 | 8 |
9 testGauge1() { | 9 testGauge1() { |
10 var gauge = new Gauge('test', 'alpha bravo', 0.0, 100.0); | 10 var gauge = new Gauge('test', 'alpha bravo', 0.0, 100.0); |
11 Expect.equals(0.0, gauge.min); | 11 Expect.equals(0.0, gauge.min); |
12 Expect.equals(0.0, gauge.value); | 12 Expect.equals(0.0, gauge.value); |
13 Expect.equals(100.0, gauge.max); | 13 Expect.equals(100.0, gauge.max); |
14 Expect.equals('test', gauge.name); | 14 Expect.equals('test', gauge.name); |
15 Expect.equals('alpha bravo', gauge.description); | 15 Expect.equals('alpha bravo', gauge.description); |
16 gauge.value = 44.0; | 16 gauge.value = 44.0; |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 } | 105 } |
106 | 106 |
107 main() { | 107 main() { |
108 testGauge1(); | 108 testGauge1(); |
109 testGauge2(); | 109 testGauge2(); |
110 testCounter(); | 110 testCounter(); |
111 testCustomCounter(); | 111 testCustomCounter(); |
112 testMetricNameCollision(); | 112 testMetricNameCollision(); |
113 testBadName(); | 113 testBadName(); |
114 } | 114 } |
OLD | NEW |