[UnitTest] [AaruFormat] Not returning track flags for dumped optical discs when not stored in image.
claunia opened this issue · 0 comments
claunia commented
Version
Development commit
Commit hash
HEAD
Tested debug version?
- Yes
Which operating systems have you used?
- Windows
- Linux
- macOS
- Other
What is the architectural bit size you're using?
- 32-bit
- 64-bit
- Unsure or unknown
What processor are you using?
- An Intel or AMD
- An ARM or Apple Silicon
- Unsure or unknown
Image format
AaruFormat
Application that created the image
Aaru
What were you doing when it failed?
- I was converting the image to another format...
- I was retrieving image information...
- I was retrieving filesystem information...
- I was listing the filesystem contents...
- I was extracting the filesystem contents...
- I was creating a metadata sidecar...
- I was checksumming the image...
- I was verifying the image...
- I was calculating the image entropy...
Destination image format
No response
Filesystem
No response
Description
Track flags are not returned if they were not explicitly stored in the image.
Exact command line used
Unit test
Expected behavior
Data tracks shall have 0x04 and audio tracks shall have 0x00 if not explicitly stored in image.
Actual behavior
Track flags returns null.
Output of command execution with debug output enabled
Expected flags[0] to be 0x04 because Track flags: test_multisession.aif, but found <null>.
Expected flags[1] to be 0x04 because Track flags: test_multisession.aif, but found <null>.
Expected flags[2] to be 0x04 because Track flags: test_multisession.aif, but found <null>.
Expected flags[3] to be 0x04 because Track flags: test_multisession.aif, but found <null>.
at FluentAssertions.Execution.LateBoundTestFramework.Throw(String message)
at FluentAssertions.Execution.TestFrameworkProvider.Throw(String message)
at FluentAssertions.Execution.CollectingAssertionStrategy.ThrowIfAny(IDictionary`2 context)
at Aaru.Tests.WritableImages.WritableOpticalMediaImageTest.<>c__DisplayClass3_0.<Info>b__0() in /Users/claunia/Development/Aaru/Aaru/Aaru.Tests/WritableImages/WritableOpticalMediaImageTest.cs:line 58
at NUnit.Framework.Assert.Multiple(TestDelegate testDelegate)
at Aaru.Tests.WritableImages.WritableOpticalMediaImageTest.Info() in /Users/claunia/Development/Aaru/Aaru/Aaru.Tests/WritableImages/WritableOpticalMediaImageTest.cs:line 30
Affected image
No response