Searched refs:expected_ns (Results 1 – 6 of 6) sorted by relevance
/external/python/cpython3/Lib/test/ |
D | test_runpy.py | 80 def assertNamespaceMatches(self, result_ns, expected_ns): argument 87 expected_ns = expected_ns.copy() 91 if k not in expected_ns: 93 if k not in expected_ns["nested"]: 98 expected_spec = expected_ns.pop("__spec__") 114 self.assertEqual(set(result_ns), set(expected_ns)) 117 expected = (k, expected_ns[k]) 128 expected_ns = expected_namespace.copy() 129 run_name = expected_ns["__name__"] 134 self.assertNamespaceMatches(result_ns, expected_ns) [all …]
|
D | test_argparse.py | 231 for args, expected_ns in tester.successes: 235 tester.assertEqual(expected_ns, result_ns) 1822 expected_ns = NS(spam=0.25) 1824 expected_ns.badger = 2 1826 expected_ns.badger = 84 1829 assert expected_ns == namespace, ('expected %s, got %s' % 1830 (expected_ns, namespace)) 1846 expected_ns = NS(badger=2) 1848 expected_ns.spam = 0.25 1850 expected_ns.spam = 0.625 [all …]
|
D | test_types.py | 945 expected_ns = {} 951 return expected_ns 959 self.assertIs(ns, expected_ns)
|
/external/rust/crates/criterion/src/ |
D | routine.rs | 127 let expected_ns = m_iters in sample() localVariable 141 .measurement_start(id, report_context, n, expected_ns, total_iters); in sample() 147 estimate_ns: expected_ns, in sample()
|
D | lib.rs | 1434 let expected_ns = total_runs as f64 * d as f64 * warmup_mean_execution_time; in choose_sampling_mode() localVariable 1436 if expected_ns > (2.0 * target_time) { in choose_sampling_mode() 1467 let expected_ns = total_runs as f64 * d as f64 * met; in iteration_counts() localVariable 1472 let actual_time = Duration::from_nanos(expected_ns as u64); in iteration_counts() 1496 let expected_ns = met * (iterations_per_sample * n) as f64; in iteration_counts() localVariable 1501 let actual_time = Duration::from_nanos(expected_ns as u64); in iteration_counts()
|
/external/python/cpython2/Lib/test/ |
D | test_argparse.py | 245 for args, expected_ns in tester.successes: 249 tester.assertEqual(expected_ns, result_ns) 1668 expected_ns = NS(spam=0.25) 1670 expected_ns.badger = 2 1672 expected_ns.badger = 84 1675 assert expected_ns == namespace, ('expected %s, got %s' % 1676 (expected_ns, namespace)) 1692 expected_ns = NS(badger=2) 1694 expected_ns.spam = 0.25 1696 expected_ns.spam = 0.625 [all …]
|