File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -33,30 +33,35 @@ TEST(NetworkManager, ValueConstructor)
33
33
assert (config.role == NetworkRole::None);
34
34
assert (config.numSecondariesExpected == 0 );
35
35
// Expect console warning as well
36
+ (void ) config;
36
37
}
37
38
38
39
{
39
40
// Primary with number of secondaries is valid
40
41
auto config = NetworkConfig::FromValues (" PRIMARY" , 3 );
41
42
assert (config.role == NetworkRole::SimulationPrimary);
42
43
assert (config.numSecondariesExpected == 3 );
44
+ (void ) config;
43
45
}
44
46
45
47
{
46
48
// Secondary is always valid
47
49
auto config = NetworkConfig::FromValues (" SECONDARY" , 0 );
48
50
assert (config.role == NetworkRole::SimulationSecondary);
51
+ (void ) config;
49
52
}
50
53
51
54
{
52
55
// Readonly is always valid
53
56
auto config = NetworkConfig::FromValues (" READONLY" );
54
57
assert (config.role == NetworkRole::ReadOnly);
58
+ (void ) config;
55
59
}
56
60
57
61
{
58
62
// Anything else is invalid
59
63
auto config = NetworkConfig::FromValues (" READ_WRITE" );
60
64
assert (config.role == NetworkRole::None);
65
+ (void ) config;
61
66
}
62
67
}
You can’t perform that action at this time.
0 commit comments