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

Function TEST

Testing/Unit/sitkImageViewerTest.cxx:28–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26namespace sitk = itk::simple;
27
28TEST(ImageViewerTest, Methods)
29{
30 itk::simple::ImageViewer iv;
31
32 std::cout << iv.ToString() << std::endl;
33
34 iv.SetTitle("ImageViewerTest");
35 EXPECT_EQ(iv.GetTitle(), "ImageViewerTest");
36
37 EXPECT_EQ(iv.GetName(), "ImageViewer");
38
39 iv.SetFileExtension(".png");
40 EXPECT_EQ(iv.GetFileExtension(), ".png");
41
42 iv.SetApplication("testapp", "testcommand");
43 EXPECT_EQ(iv.GetApplication(), "testapp");
44 EXPECT_EQ(iv.GetCommand(), "testcommand");
45
46
47 unsigned int delay;
48 delay = iv.GetProcessDelay();
49
50#ifdef _WIN32
51 EXPECT_EQ(delay, 1u);
52#else
53 EXPECT_EQ(delay, 500u);
54#endif
55 iv.SetProcessDelay(delay);
56}
57
58TEST(ImageViewerTest, GlobalDefaults)
59{

Callers

nothing calls this directly

Calls 15

SetTitleMethod · 0.80
SetFileExtensionMethod · 0.80
SetApplicationMethod · 0.80
GetProcessDelayMethod · 0.80
SetProcessDelayMethod · 0.80
SetCommandMethod · 0.80

Tested by

no test coverage detected