Lines Matching refs:result
13 let result = validate_ip_string("bad.6.6.6"); in test_external_ip_mapper_validate_ip_string() localVariable
14 assert!(result.is_err(), "should fail"); in test_external_ip_mapper_validate_ip_string()
68 let result = ExternalIpMapper::new(CandidateType::PeerReflexive, &["1.2.3.4".to_owned()]); in test_external_ip_mapper_new_external_ip_mapper() localVariable
69 assert!(result.is_err(), "should fail"); in test_external_ip_mapper_new_external_ip_mapper()
72 let result = ExternalIpMapper::new(CandidateType::PeerReflexive, &["1.2.3.4".to_owned()]); in test_external_ip_mapper_new_external_ip_mapper() localVariable
73 assert!(result.is_err(), "should fail"); in test_external_ip_mapper_new_external_ip_mapper()
76 let result = ExternalIpMapper::new( in test_external_ip_mapper_new_external_ip_mapper() localVariable
80 assert!(result.is_err(), "should fail"); in test_external_ip_mapper_new_external_ip_mapper()
83 let result = ExternalIpMapper::new( in test_external_ip_mapper_new_external_ip_mapper() localVariable
87 assert!(result.is_err(), "should fail"); in test_external_ip_mapper_new_external_ip_mapper()
90 let result = ExternalIpMapper::new(CandidateType::ServerReflexive, &["bad.2.3.4".to_owned()]); in test_external_ip_mapper_new_external_ip_mapper() localVariable
91 assert!(result.is_err(), "should fail"); in test_external_ip_mapper_new_external_ip_mapper()
94 let result = ExternalIpMapper::new( in test_external_ip_mapper_new_external_ip_mapper() localVariable
98 assert!(result.is_err(), "should fail"); in test_external_ip_mapper_new_external_ip_mapper()
115 let result = ExternalIpMapper::new( in test_external_ip_mapper_new_external_ip_mapper_with_explicit_local_ip() localVariable
119 assert!(result.is_err(), "should fail"); in test_external_ip_mapper_new_external_ip_mapper_with_explicit_local_ip()
122 let result = ExternalIpMapper::new( in test_external_ip_mapper_new_external_ip_mapper_with_explicit_local_ip() localVariable
129 assert!(result.is_err(), "should fail"); in test_external_ip_mapper_new_external_ip_mapper_with_explicit_local_ip()
132 let result = in test_external_ip_mapper_new_external_ip_mapper_with_explicit_local_ip() localVariable
134 assert!(result.is_err(), "should fail"); in test_external_ip_mapper_new_external_ip_mapper_with_explicit_local_ip()
137 let result = ExternalIpMapper::new(CandidateType::Unspecified, &["1.2.3.4/fe80::1".to_owned()]); in test_external_ip_mapper_new_external_ip_mapper_with_explicit_local_ip() localVariable
138 assert!(result.is_err(), "should fail"); in test_external_ip_mapper_new_external_ip_mapper_with_explicit_local_ip()
141 let result = ExternalIpMapper::new( in test_external_ip_mapper_new_external_ip_mapper_with_explicit_local_ip() localVariable
145 assert!(result.is_err(), "should fail"); in test_external_ip_mapper_new_external_ip_mapper_with_explicit_local_ip()
153 let result = ExternalIpMapper::new( in test_external_ip_mapper_new_external_ip_mapper_with_implicit_local_ip() localVariable
157 assert!(result.is_err(), "should fail"); in test_external_ip_mapper_new_external_ip_mapper_with_implicit_local_ip()
160 let result = ExternalIpMapper::new( in test_external_ip_mapper_new_external_ip_mapper_with_implicit_local_ip() localVariable
164 assert!(result.is_err(), "should fail"); in test_external_ip_mapper_new_external_ip_mapper_with_implicit_local_ip()
189 let result = m.find_external_ip("really.bad"); in test_external_ip_mapper_find_external_ip_without_explicit_local_ip() localVariable
190 assert!(result.is_err(), "should fail"); in test_external_ip_mapper_find_external_ip_without_explicit_local_ip()
216 let result = m.find_external_ip("10.0.0.3"); in test_external_ip_mapper_find_external_ip_with_explicit_local_ip() localVariable
217 assert!(result.is_err(), "should fail"); in test_external_ip_mapper_find_external_ip_with_explicit_local_ip()
226 let result = m.find_external_ip("fe80::3"); in test_external_ip_mapper_find_external_ip_with_explicit_local_ip() localVariable
227 assert!(result.is_err(), "should fail"); in test_external_ip_mapper_find_external_ip_with_explicit_local_ip()
230 let result = m.find_external_ip("really.bad"); in test_external_ip_mapper_find_external_ip_with_explicit_local_ip() localVariable
231 assert!(result.is_err(), "should fail"); in test_external_ip_mapper_find_external_ip_with_explicit_local_ip()
241 let result = m.find_external_ip("fe80::1"); in test_external_ip_mapper_find_external_ip_with_empty_map() localVariable
242 assert!(result.is_err(), "should fail"); in test_external_ip_mapper_find_external_ip_with_empty_map()
247 let result = m.find_external_ip("10.0.0.1"); in test_external_ip_mapper_find_external_ip_with_empty_map() localVariable
248 assert!(result.is_err(), "should fail"); in test_external_ip_mapper_find_external_ip_with_empty_map()