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

Function TEST

src/tests/resource_provider_validation_tests.cpp:40–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38namespace tests {
39
40TEST(ResourceProviderCallValidationTest, Subscribe)
41{
42 Call call;
43 call.set_type(Call::SUBSCRIBE);
44
45 // Expecting `Call::Subscribe`.
46 Option<Error> error = call::validate(call, None());
47 EXPECT_SOME(error);
48
49 Call::Subscribe* subscribe = call.mutable_subscribe();
50 ResourceProviderInfo* info = subscribe->mutable_resource_provider_info();
51 info->set_type("org.apache.mesos.rp.test");
52 info->set_name("test");
53
54 error = call::validate(call, None());
55 EXPECT_NONE(error);
56}
57
58
59TEST(ResourceProviderCallValidationTest, UpdateOperationStatus)

Callers

nothing calls this directly

Calls 8

NoneClass · 0.85
randomFunction · 0.85
createUUIDFunction · 0.85
CopyFromMethod · 0.80
validateFunction · 0.50
parseFunction · 0.50
toStringMethod · 0.45
idMethod · 0.45

Tested by

no test coverage detected