Skip to content

Commit 21e8c0f

Browse files
committed
Add doc comments to helper functions
1 parent c095807 commit 21e8c0f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/src/unit/tests/test_load_balancing.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ QueryCounts run_policy(LoadBalancingPolicy& policy, int count, CassConsistency c
107107
return counts;
108108
}
109109

110+
// verify_dcs checks that all hosts in counts are from expected_dc.
110111
void verify_dcs(const QueryCounts& counts, const HostMap& hosts, const String& expected_dc) {
111112
for (QueryCounts::const_iterator it = counts.begin(), end = counts.end(); it != end; ++it) {
112113
HostMap::const_iterator host_it = hosts.find(it->first);
@@ -115,6 +116,7 @@ void verify_dcs(const QueryCounts& counts, const HostMap& hosts, const String& e
115116
}
116117
}
117118

119+
// verify_query_counts checks that each host was used expected_count times.
118120
void verify_query_counts(const QueryCounts& counts, int expected_count) {
119121
for (QueryCounts::const_iterator it = counts.begin(), end = counts.end(); it != end; ++it) {
120122
EXPECT_EQ(expected_count, it->second);

0 commit comments

Comments
 (0)