MCPcopy Create free account
hub / github.com/apache/mesos / foreach

Function foreach

src/linux/routing/link/link.cpp:71–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69 }
70
71 foreach (const route::Rule& rule, mainRoutingTable.get()) {
72 if (rule.destination.isNone()) {
73 // Check if the public interface exists.
74 Try<bool> exists = link::exists(rule.link);
75 if (exists.isError()) {
76 return Error(
77 "Failed to check if " + rule.link + " exists: " + exists.error());
78 } else if (!exists.get()) {
79 return Error(
80 rule.link + " is in the routing table but not in the system");
81 }
82
83 return rule.link;
84 }
85 }
86
87 return None();
88}

Callers

nothing calls this directly

Calls 8

testFunction · 0.85
existsFunction · 0.70
errorMethod · 0.65
ErrorFunction · 0.50
isNoneMethod · 0.45
isErrorMethod · 0.45
getMethod · 0.45
isSomeMethod · 0.45

Tested by

no test coverage detected