MCPcopy Index your code
hub / github.com/alignoth/alignoth / test_aux_record

Function test_aux_record

src/plot.rs:1136–1146  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1134
1135 #[test]
1136 fn test_aux_record() {
1137 let mut record = bam::Record::new();
1138 let aux_integer_field = Aux::I32(1234);
1139 record.push_aux(b"XI", aux_integer_field).unwrap();
1140 let aux_record = AuxRecord::new(&record, &Some(vec!["XI".to_string()]));
1141 let expected_aux_record = AuxRecord(HashMap::from_iter(vec![(
1142 "XI".to_string(),
1143 "1234".to_string(),
1144 )]));
1145 assert_eq!(aux_record, expected_aux_record);
1146 }
1147
1148 #[test]
1149 fn test_aux_record_to_string() {

Callers

nothing calls this directly

Calls 1

AuxRecordClass · 0.85

Tested by

no test coverage detected