Skip to content

Commit 3f3c570

Browse files
committed
Tests: Simply ignore tests with unimplemented/uncertain behavior
1 parent 308aef0 commit 3f3c570

File tree

6 files changed

+38
-34
lines changed

6 files changed

+38
-34
lines changed

tests/taglib/test_apetag.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ fn test_text_binary() {
9191

9292
// TODO: Does not work! We fall for this collision.
9393
#[test]
94+
#[ignore]
9495
fn test_id3v1_collision() {
9596
let mut file = temp_file!("tests/taglib/data/no-tags.mpc");
9697
{

tests/taglib/test_fileref.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,7 @@ fn test_default_file_extensions() {
216216

217217
// TODO: We need to check resolvers *first* and then resort to our default implementations
218218
#[test]
219+
#[ignore]
219220
fn test_file_resolver() {
220221
{
221222
let file = lofty::read_from_path("tests/taglib/data/xing.mp3").unwrap();

tests/taglib/test_flac.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,7 @@ fn test_repeated_save_2() {
221221

222222
// TODO: We don't make use of padding blocks yet
223223
#[test]
224+
#[ignore]
224225
fn test_repeated_save_3() {
225226
let mut file = temp_file!("tests/taglib/data/no-tags.flac");
226227

@@ -424,6 +425,7 @@ fn test_zero_sized_padding_2() {
424425

425426
// TODO: We don't make use of padding blocks yet
426427
#[test]
428+
#[ignore]
427429
fn test_shrink_padding() {
428430
let mut file = temp_file!("tests/taglib/data/silence-44-s.flac");
429431
{
@@ -480,6 +482,7 @@ fn test_empty_id3v2() {
480482

481483
// TODO: TagLib doesn't fully remove Vorbis Comments when stripping. It will preserve the vendor string. Should we do the same?
482484
#[test]
485+
#[ignore]
483486
fn test_strip_tags() {
484487
// NOTE: In the TagLib test suite, this also tests ID3v1 and ID3v2. That is not replicated here.
485488

tests/taglib/test_id3v2.rs

Lines changed: 26 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -29,17 +29,15 @@ fn test_unsynch_decode() {
2929
);
3030
}
3131

32+
// TODO: Support downgrading to ID3v2.3 (#62)
3233
#[test]
3334
#[ignore]
34-
fn test_downgrade_utf8_for_id3v23_1() {
35-
todo!("We don't support downgrading 2.4 tags to 2.3")
36-
}
35+
fn test_downgrade_utf8_for_id3v23_1() {}
3736

37+
// TODO: Support downgrading to ID3v2.3 (#62)
3838
#[test]
3939
#[ignore]
40-
fn test_downgrade_utf8_for_id3v23_2() {
41-
todo!("We don't support downgrading 2.4 tags to 2.3")
42-
}
40+
fn test_downgrade_utf8_for_id3v23_2() {}
4341

4442
#[test]
4543
fn test_utf16be_delimiter() {
@@ -735,6 +733,7 @@ fn test_render_user_text_identification_frame() {
735733

736734
// TODO: iTunes, being the great application it is writes unsynchronized integers for sizes. There's no *great* way to detect this.
737735
#[test]
736+
#[ignore]
738737
fn test_itunes_24_frame_size() {
739738
let mut file = temp_file!("tests/taglib/data/005411.id3");
740739
let f = MpegFile::read_from(&mut file, ParseOptions::new().read_properties(false)).unwrap();
@@ -788,10 +787,10 @@ fn test_save_utf16_comment() {
788787
}
789788
}
790789

790+
// TODO: Support downgrading to ID3v2.3 (#62)
791791
#[test]
792-
fn test_update_genre_23_1() {
793-
todo!("We don't support downgrading to 2.3 tags yet")
794-
}
792+
#[ignore]
793+
fn test_update_genre_23_1() {}
795794

796795
#[test]
797796
#[ignore]
@@ -823,6 +822,7 @@ fn test_update_date22() {
823822

824823
// TODO: Determine if this is even worth doing. It is just combining TYE+TDA when upgrading ID3v2.2 to 2.4
825824
#[test]
825+
#[ignore]
826826
fn test_update_full_date22() {
827827
let mut file = temp_file!("tests/taglib/data/id3v22-tda.mp3");
828828
let f = MpegFile::read_from(&mut file, ParseOptions::new()).unwrap();
@@ -836,11 +836,10 @@ fn test_update_full_date22() {
836836
);
837837
}
838838

839+
// TODO: Support downgrading to ID3v2.3 (#62)
839840
#[test]
840841
#[ignore]
841-
fn test_downgrade_to_23() {
842-
todo!("We don't support downgrading 2.4 tags to 2.3")
843-
}
842+
fn test_downgrade_to_23() {}
844843

845844
#[test]
846845
fn test_compressed_frame_with_broken_length() {
@@ -965,25 +964,25 @@ fn test_save_and_strip_id3v1_should_not_add_frame_from_id3v1_to_id3v2() {
965964
assert!(f.id3v2().is_none());
966965
}
967966

967+
// TODO: Support CHAP frames (#189)
968968
#[test]
969-
fn test_parse_chapter_frame() {
970-
todo!("We don't support CHAP frames yet")
971-
}
969+
#[ignore]
970+
fn test_parse_chapter_frame() {}
972971

972+
// TODO: Support CHAP frames (#189)
973973
#[test]
974-
fn test_render_chapter_frame() {
975-
todo!("We don't support CHAP frames yet")
976-
}
974+
#[ignore]
975+
fn test_render_chapter_frame() {}
977976

977+
// TODO: Support CTOC frames (#189)
978978
#[test]
979-
fn test_parse_table_of_contents_frame() {
980-
todo!("We don't support CTOC frames yet")
981-
}
979+
#[ignore]
980+
fn test_parse_table_of_contents_frame() {}
982981

982+
// TODO: Support CTOC frames (#189)
983983
#[test]
984-
fn test_render_table_of_contents_frame() {
985-
todo!("We don't support CTOC frames yet")
986-
}
984+
#[ignore]
985+
fn test_render_table_of_contents_frame() {}
987986

988987
#[test]
989988
#[ignore]
@@ -997,7 +996,7 @@ fn test_duplicate_tags() {
997996
// Marker test, Lofty will combine duplicated tags
998997
}
999998

999+
// TODO: Support CTOC frames (#189)
10001000
#[test]
1001-
fn test_parse_toc_frame_with_many_children() {
1002-
todo!("We don't support CTOC frames yet")
1003-
}
1001+
#[ignore]
1002+
fn test_parse_toc_frame_with_many_children() {}

tests/taglib/test_mp4.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -234,10 +234,9 @@ fn test_save_existing_when_ilst_is_last() {
234234
}
235235

236236
#[test]
237+
#[ignore]
237238
fn test_64bit_atom() {
238-
todo!(
239-
"Maybe? This just checks the moov atom's length. We don't retain any atoms we don't need."
240-
)
239+
// Marker test, this just checks the moov atom's length. We don't retain any atoms we don't need.
241240
}
242241

243242
#[test]

tests/taglib/test_ogaflac.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,13 @@ fn test_framing_bit() {
3232
// }
3333
}
3434

35+
// TODO: We don't support FLAC in OGA (#172)
3536
#[test]
37+
#[ignore]
3638
fn test_fuzzed_file() {
37-
todo!("We don't support FLAC in OGA")
38-
// let mut file = temp_file!("tests/taglib/data/segfault.oga");
39-
// let f = FlacFile::read_from(&mut file, ParseOptions::new());
40-
// assert!(f.is_err());
39+
let mut file = temp_file!("tests/taglib/data/segfault.oga");
40+
let f = FlacFile::read_from(&mut file, ParseOptions::new());
41+
assert!(f.is_err());
4142
}
4243

4344
#[test]

0 commit comments

Comments
 (0)