Searched refs:capture (Results 1 - 16 of 16) sorted by relevance
/gem5/ext/pybind11/tests/ |
H A D | test_call_policies.py | 6 def test_keep_alive_argument(capture): 8 with capture: 10 assert capture == "Allocating parent." 11 with capture: 14 assert capture == """ 18 with capture: 21 assert capture == "Releasing parent." 23 with capture: 25 assert capture == "Allocating parent." 26 with capture [all...] |
H A D | test_eval.py | 5 def test_evals(capture): 6 with capture: 8 assert capture == "Hello World!"
|
H A D | test_numpy_vectorize.py | 10 def test_vectorize(capture): 14 with capture: 16 assert capture == "my_func(x:int=1, y:float=2, z:float=3)" 17 with capture: 19 assert capture == "my_func(x:int=1, y:float=2, z:float=3)" 20 with capture: 22 assert capture == """ 26 with capture: 34 assert capture == """ 40 with capture [all...] |
H A D | test_pytypes.py | 9 def test_list(capture, doc): 10 with capture: 16 assert capture.unordered == """ 28 def test_set(capture, doc): 32 with capture: 35 assert capture.unordered == """ 50 def test_dict(capture, doc): 54 with capture: 57 assert capture.unordered == """ 102 def test_capsule(capture) [all...] |
H A D | test_virtual_functions.py | 7 def test_override(capture, msg): 35 with capture: 37 assert capture == """ 46 with capture: 48 assert capture == """ 52 with capture: 54 assert capture == "ExtendedExampleVirt::run_bool()" 55 with capture: 57 assert capture == "ExtendedExampleVirt::pure_virtual(): Hello world" 60 with capture [all...] |
H A D | test_factory_constructors.py | 285 def test_no_placement_new(capture): 288 with capture: 291 found = re.search(r'^operator new called, returning (\d+)\n$', str(capture)) 294 with capture: 297 assert capture == "operator delete called on " + found.group(1) 299 with capture: 302 found = re.search(r'^operator new called, returning (\d+)\n$', str(capture)) 305 with capture: 308 assert capture == "operator delete called on " + found.group(1) 333 def test_reallocations(capture, ms [all...] |
H A D | test_exceptions.py | 105 def test_nested_throws(capture): 117 with capture: 119 assert str(capture).startswith("MyException5: nested error 5") 133 with capture: 136 assert str(capture).startswith("MyException5: nested error 5") 139 with capture: 141 assert capture == "this error is rethrown"
|
H A D | test_class.py | 157 def test_operator_new_delete(capture): 163 with capture: 167 assert capture == """ 174 with capture: 177 assert capture == ( 182 with capture: 189 assert capture == """ 195 with capture: 200 assert capture == (
|
H A D | test_smart_ptr.py | 6 def test_smart_ptr(capture): 10 with capture: 15 assert capture == "MyObject1[{i}]\n".format(i=i) * 4 20 with capture: 30 assert capture == "MyObject1[{i}]\n".format(i=i) * (4 if isinstance(o, int) else 8) 45 with capture: 50 assert capture == "MyObject2[{i}]\n".format(i=i) * 4 66 with capture: 71 assert capture == "MyObject3[{i}]\n".format(i=i) * 4
|
H A D | test_builtin_casters.py | 113 def test_string_view(capture): 124 with capture: 129 assert capture == """ 136 with capture: 141 assert capture == """
|
H A D | test_iostream.py | 76 def test_series_captured(capture): 77 with capture: 80 assert capture == "ab"
|
H A D | test_numpy_array.py | 218 def test_numpy_view(capture): 219 with capture: 226 assert capture == """ 235 with capture: 240 assert capture == """
|
H A D | conftest.py | 3 Extends output capture as needed by pybind11: ignore constructors, optional unordered lines. 111 def capture(capsys): function
|
/gem5/ext/googletest/googletest/include/gtest/internal/ |
H A D | gtest-linked_ptr.h | 152 explicit linked_ptr(T* ptr = NULL) { capture(ptr); } 180 capture(ptr); 208 void capture(T* ptr) { function in class:testing::internal::linked_ptr
|
/gem5/ext/pybind11/include/pybind11/ |
H A D | functional.h | 51 struct capture { function_type f; }; struct 52 value = ((capture *) &rec->data)->f; 68 // to emulate 'move initialization capture' in C++11
|
H A D | pybind11.h | 102 struct capture { remove_reference_t<Func> f; }; struct 104 /* Store the function including any extra state it might have (e.g. a lambda capture object) */ 107 /* Store the capture object directly in the function record if there is enough space */ 108 if (sizeof(capture) <= sizeof(rec->data)) { 116 new ((capture *) &rec->data) capture { std::forward<Func>(f) }; 121 rec->free_data = [](function_record *r) { ((capture *) &r->data)->~capture(); }; 123 rec->data[0] = new capture { std::forward<Func>(f) }; 124 rec->free_data = [](function_record *r) { delete ((capture *) 1164 struct capture { Func func; }; struct [all...] |
Completed in 27 milliseconds