class File
Defined at line 34 of file ../../src/lib/zxdump/test-tool-process.h
Public Members
static basic_string_view kZstdSuffix
Public Methods
void File ()
Defined at line 38 of file ../../src/lib/zxdump/test-tool-process.h
void File (const File & )
Defined at line 39 of file ../../src/lib/zxdump/test-tool-process.h
void File (File && )
Defined at line 40 of file ../../src/lib/zxdump/test-tool-process.h
const std::string & tmp_path ()
Defined at line 44 of file ../../src/lib/zxdump/test-tool-process.h
std::string name ()
Return the name of the file as seen by the tool run by Start.
This is used in composing the arguments to pass to Start.
Defined at line 48 of file ../../src/lib/zxdump/test-tool-process.h
void ~File ()
Defined at line 283 of file ../../src/lib/zxdump/test-tool-process.cc
fbl::unique_fd CreateInput ()
Create the file so it can be written and used as input to the tool.
This is used before Start, with name() used to compose the arguments.
Defined at line 233 of file ../../src/lib/zxdump/test-tool-process.cc
void CreateInput (std::string_view text)
Same, but fills the file with the given contents.
Defined at line 243 of file ../../src/lib/zxdump/test-tool-process.cc
fbl::unique_fd OpenOutput ()
Read the file after it's been written by the tool.
This is used after Finish.
Defined at line 252 of file ../../src/lib/zxdump/test-tool-process.cc
std::string OutputContents ()
Uses OpenOutput to read the whole file.
Defined at line 260 of file ../../src/lib/zxdump/test-tool-process.cc
File NoFile ()
Don't expect this file to be created.
Defined at line 272 of file ../../src/lib/zxdump/test-tool-process.cc
File & ZstdCompress ()
This immediately takes the existing file already written and runs
the zstd tool to compress it into a file of the same name + ".zst".
Defined at line 453 of file ../../src/lib/zxdump/test-tool-process.cc
File & ZstdDecompress ()
This immediately takes the existing file ending in ".zst" and uses
the zstd tool to decompress it into a file of the same name - ".zst".
Defined at line 470 of file ../../src/lib/zxdump/test-tool-process.cc
Friends
class TestToolProcess