lcov_parser/report/attribute.rs
1// Copyright (c) 2015-2016 lcov-parser developers
2//
3// Licensed under the Apache License, Version 2.0
4// <LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0> or the MIT
5// license <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
6// option. All files in the project carrying such notice may not be copied,
7// modified, or distributed except according to those terms.
8
9use counter::Hit;
10
11pub type TestName = String;
12pub type SourceFile = String;
13pub type LineNumber = u32;
14pub type ExecutionCount = u32;
15pub type FunctionName = String;
16pub type CheckSum = String;
17
18impl Hit for ExecutionCount {
19 fn is_hit(&self) -> bool {
20 *self > 0
21 }
22}