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

Function devolve

src/csi/v1_utils.cpp:27–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25// Helper for repeated field devolving to `T1` from `T2`.
26template <typename T1, typename T2>
27RepeatedPtrField<T1> devolve(RepeatedPtrField<T2> from)
28{
29 RepeatedPtrField<T1> to;
30 foreach (const T2& value, from) {
31 *to.Add() = devolve(value);
32 }
33
34 return to;
35}
36
37
38CSIVolume::VolumeCapability::BlockVolume devolve(

Callers 15

getContainersMethod · 0.70
foreachFunction · 0.70
validateVolumeMethod · 0.70
sendMethod · 0.50
callMethod · 0.50
validateFunction · 0.50
apiMethod · 0.50
cleanupContainersMethod · 0.50
translateMethod · 0.50
recoverMethod · 0.50
updateMethod · 0.50
initializeMethod · 0.50

Calls 2

blockMethod · 0.45
mountMethod · 0.45

Tested by 15

TEST_FFunction · 0.40
TEST_PFunction · 0.40
TEST_FFunction · 0.40
TEST_PFunction · 0.40
foreachFunction · 0.40
TEST_PFunction · 0.40
foreachkeyFunction · 0.40
TEST_FFunction · 0.40
TEST_PFunction · 0.40
devolveAndEvolveFunction · 0.40