MCPcopy Create free account
hub / github.com/comaps/comaps / CanAddExcludeTime

Method CanAddExcludeTime

libs/editor/opening_hours_ui.cpp:182–186  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

180}
181
182bool TimeTable::CanAddExcludeTime() const
183{
184 auto copy = *this;
185 return copy.AddExcludeTime(GetPredefinedExcludeTime()) && copy.GetExcludeTime().size() == GetExcludeTime().size() + 1;
186}
187
188bool TimeTable::AddExcludeTime(osmoh::Timespan const & span)
189{

Callers 1

UNIT_TESTFunction · 0.80

Calls 2

AddExcludeTimeMethod · 0.80
sizeMethod · 0.45

Tested by 1

UNIT_TESTFunction · 0.64