MCPcopy Create free account
hub / github.com/OpenImageDebugger/OpenImageDebugger / TEST

Function TEST

tests/host/ui/export_dialog_test.cpp:44–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42using oid::host::open_export_dialog;
43
44TEST(ExportDialog, DefaultPathPrefersLastExportDir) {
45 EXPECT_EQ(default_export_path("/exp", "/home/x", "buf", OutputType::Bitmap),
46 "/exp/buf.png");
47 EXPECT_EQ(
48 default_export_path("/exp", "/home/x", "buf", OutputType::OctaveMatrix),
49 "/exp/buf.oct");
50}
51
52TEST(ExportDialog, DefaultPathFallsBackToHomeDesktop) {
53 EXPECT_EQ(default_export_path("", "/home/x", "buf", OutputType::Bitmap),

Callers

nothing calls this directly

Calls 5

default_export_pathFunction · 0.85
open_export_dialogFunction · 0.85
apply_format_extensionFunction · 0.85
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected