bynk.fixture.binary_content
Error A suite's fixture names a file that contains a NUL byte, so it is binary, not text.
A fixture becomes a String in the test code, so its file must be text. A file holding a NUL byte is binary, and a String made from it would be meaningless. Keep a text form of the data in the fixture, such as base64, and decode it in the case with Bytes.fromBase64. Text that is not valid UTF-8 is bynk.fixture.invalid_encoding.
Example
fixture blob = "fixtures/blob.bin" // ✗ the file has a NUL byte
fixture blob = "fixtures/blob.b64" // ✓ its base64 textIn the Book
See also
- The grammar rule it governs:
fixture_decl. - Every code in its category, Other, on the diagnostic index.
bynk explain bynk.fixture.binary_contentshows the same from the installed toolchain, without a network.