Lines Matching refs:candidate
102 for (candidate, want) in tests { in test_candidate_priority()
103 let got = candidate.priority(); in test_candidate_priority()
115 let candidate = CandidateBase::default(); in test_candidate_last_sent() localVariable
116 assert_eq!(candidate.last_sent(), UNIX_EPOCH); in test_candidate_last_sent()
120 candidate.set_last_sent(d); in test_candidate_last_sent()
121 assert_eq!(candidate.last_sent(), now); in test_candidate_last_sent()
128 let candidate = CandidateBase::default(); in test_candidate_last_received() localVariable
129 assert_eq!(candidate.last_received(), UNIX_EPOCH); in test_candidate_last_received()
133 candidate.set_last_received(d); in test_candidate_last_received()
134 assert_eq!(candidate.last_received(), now); in test_candidate_last_received()
391 for (candidate, marshaled) in tests { in test_candidate_marshal()
393 if let Some(candidate) = candidate { in test_candidate_marshal()
396 candidate.equal(&actual_candidate), in test_candidate_marshal()
398 candidate.marshal(), in test_candidate_marshal()