Skip to content

Commit 54d7589

Browse files
Update tests to use PartialPafRecord and remove unused fields
1 parent de473e9 commit 54d7589

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

src/impg.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1360,13 +1360,11 @@ mod tests {
13601360
let target_id = seq_index.get_or_insert_id("t1", Some(200));
13611361
let reader = BufReader::new(&paf_data[..]);
13621362
let expected_records = vec![
1363-
PafRecord {
1363+
PartialPafRecord {
13641364
query_id: query_id,
1365-
query_length: 100,
13661365
query_start: 10,
13671366
query_end: 20,
13681367
target_id: target_id,
1369-
target_length: 200,
13701368
target_start: 30,
13711369
target_end: 40,
13721370
strand_and_cigar_offset: 45, // Forward strand

src/paf.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,16 +136,14 @@ mod tests {
136136
// IDs should be 0 and 1 as they're the first entries in the SequenceIndex
137137
let query_id = seq_index.get_id("seq1").unwrap();
138138
let target_id = seq_index.get_id("seq2").unwrap();
139-
139+
140140
assert_eq!(
141141
record,
142142
PartialPafRecord {
143143
query_id,
144-
query_length: 100,
145144
query_start: 0,
146145
query_end: 100,
147146
target_id,
148-
target_length: 100,
149147
target_start: 0,
150148
target_end: 100,
151149
// If no cigar, then the offset is just the length of the line and cigar_bytes=0

0 commit comments

Comments
 (0)