MCPcopy Create free account
hub / github.com/MITK/MITK / TestSetLock

Method TestSetLock

Modules/Multilabel/Testing/mitkLabelTest.cpp:39–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37
38public:
39 void TestSetLock()
40 {
41 mitk::Label::Pointer label = mitk::Label::New();
42 CPPUNIT_ASSERT_MESSAGE("Initial label not locked", label->GetLocked() == true);
43
44 label->SetLocked(false);
45 CPPUNIT_ASSERT_MESSAGE("Label should not be locked", label->GetLocked() == false);
46 }
47
48 void TestSetVisibility()
49 {

Callers

nothing calls this directly

Calls 3

SetLockedMethod · 0.80
NewFunction · 0.50
GetLockedMethod · 0.45

Tested by

no test coverage detected