Skip to content

Commit 6c1d7f1

Browse files
committed
feat(separate_trace_types_crate): Moved test test_equality_of_value_records to codetracer_trace_types
1 parent 0ba82d4 commit 6c1d7f1

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

codetracer_trace_types/src/lib.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
11
mod base64;
22
mod types;
33
pub use types::*;
4+
5+
#[test]
6+
fn test_equality_of_value_records() {
7+
let a = ValueRecord::Int { i: 0, type_id: TypeId(0) }; // just an example type_id
8+
let b = ValueRecord::Int { i: 0, type_id: TypeId(0) };
9+
let different = ValueRecord::Int { i: 1, type_id: TypeId(0) };
10+
11+
assert_eq!(a, b);
12+
assert_ne!(a, different);
13+
}

runtime_tracing/src/lib.rs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -130,14 +130,4 @@ mod tests {
130130
// tracer.store_trace_paths(&PathBuf::from("trace_paths.json")).unwrap();
131131
// tracer.store_trace_events(&PathBuf::from("trace.json")).unwrap();
132132
}
133-
134-
#[test]
135-
fn test_equality_of_value_records() {
136-
let a = ValueRecord::Int { i: 0, type_id: TypeId(0) }; // just an example type_id
137-
let b = ValueRecord::Int { i: 0, type_id: TypeId(0) };
138-
let different = ValueRecord::Int { i: 1, type_id: TypeId(0) };
139-
140-
assert_eq!(a, b);
141-
assert_ne!(a, different);
142-
}
143133
}

0 commit comments

Comments
 (0)