Home
last modified time | relevance | path

Searched refs:setup_code (Results 1 – 25 of 89) sorted by relevance

1234

/dports/www/drupal8/drupal-8.9.20/core/tests/Drupal/Tests/Core/Render/
H A DRendererTest.php45 if (isset($setup_code)) {
46 $setup_code = $setup_code->bindTo($this);
47 $setup_code();
328 $setup_code = function () {
338 $setup_code = function () {
350 $setup_code = function () {
365 $setup_code = function () {
406 $setup_code = function () {
425 $setup_code = function () {
441 $setup_code = function () {
[all …]
/dports/www/drupal9/drupal-9.2.10/core/tests/Drupal/Tests/Core/Render/
H A DRendererTest.php45 if (isset($setup_code)) {
46 $setup_code = $setup_code->bindTo($this);
47 $setup_code();
332 $setup_code = function () {
347 $setup_code = function () {
364 $setup_code = function () {
379 $setup_code = function () {
420 $setup_code = function () {
439 $setup_code = function () {
455 $setup_code = function () {
[all …]
/dports/science/py-cirq-core/Cirq-0.13.1/cirq-core/cirq/testing/
H A Dequivalent_repr_eval_test.py24 cirq.testing.assert_equivalent_repr(t, setup_code='')
26 cirq.testing.assert_equivalent_repr(np.array([5]), setup_code='from numpy import array')
36 setup_code = """class CustomRepr: variable in test_custom_class_repr.CustomRepr
57 CustomRepr('b', "CustomRepr('b')"), setup_code=CustomRepr.setup_code
60 CustomRepr('a', "CustomRepr('a')"), setup_code=CustomRepr.setup_code
82 CustomRepr(5, "CustomRepr(5)**1"), setup_code=CustomRepr.setup_code
H A Dconsistent_protocols.py55 setup_code: str = 'import cirq\nimport numpy as np\nimport sympy',
66 setup_code=setup_code,
77 setup_code=setup_code,
90 setup_code: str = 'import cirq\nimport numpy as np\nimport sympy',
105 setup_code=setup_code,
143 setup_code: str,
160 val, setup_code=setup_code, global_vals=global_vals, local_vals=local_vals
H A Dequivalent_repr_eval.py23 setup_code: str = (
48 exec(setup_code, global_vals, local_vals)
59 'error={!r}'.format(setup_code, type(value), value, ex)
84 ' ' + setup_code.replace('\n', '\n '),
/dports/science/py-cirq-aqt/Cirq-0.12.0/cirq-core/cirq/testing/
H A Dequivalent_repr_eval_test.py24 cirq.testing.assert_equivalent_repr(t, setup_code='')
26 cirq.testing.assert_equivalent_repr(np.array([5]), setup_code='from numpy import array')
36 setup_code = """class CustomRepr: variable in test_custom_class_repr.CustomRepr
57 CustomRepr('b', "CustomRepr('b')"), setup_code=CustomRepr.setup_code
60 CustomRepr('a', "CustomRepr('a')"), setup_code=CustomRepr.setup_code
82 CustomRepr(5, "CustomRepr(5)**1"), setup_code=CustomRepr.setup_code
H A Dconsistent_protocols.py54 setup_code: str = 'import cirq\nimport numpy as np\nimport sympy',
65 setup_code=setup_code,
76 setup_code=setup_code,
89 setup_code: str = 'import cirq\nimport numpy as np\nimport sympy',
104 setup_code=setup_code,
142 setup_code: str,
159 val, setup_code=setup_code, global_vals=global_vals, local_vals=local_vals
H A Dequivalent_repr_eval.py21 setup_code: str = (
46 exec(setup_code, global_vals, local_vals)
57 'error={!r}'.format(setup_code, type(value), value, ex)
82 ' ' + setup_code.replace('\n', '\n '),
/dports/science/py-cirq-pasqal/Cirq-0.13.1/cirq-core/cirq/testing/
H A Dequivalent_repr_eval_test.py24 cirq.testing.assert_equivalent_repr(t, setup_code='')
26 cirq.testing.assert_equivalent_repr(np.array([5]), setup_code='from numpy import array')
36 setup_code = """class CustomRepr: variable in test_custom_class_repr.CustomRepr
57 CustomRepr('b', "CustomRepr('b')"), setup_code=CustomRepr.setup_code
60 CustomRepr('a', "CustomRepr('a')"), setup_code=CustomRepr.setup_code
82 CustomRepr(5, "CustomRepr(5)**1"), setup_code=CustomRepr.setup_code
H A Dconsistent_protocols.py55 setup_code: str = 'import cirq\nimport numpy as np\nimport sympy',
66 setup_code=setup_code,
77 setup_code=setup_code,
90 setup_code: str = 'import cirq\nimport numpy as np\nimport sympy',
105 setup_code=setup_code,
143 setup_code: str,
160 val, setup_code=setup_code, global_vals=global_vals, local_vals=local_vals
H A Dequivalent_repr_eval.py23 setup_code: str = (
48 exec(setup_code, global_vals, local_vals)
59 'error={!r}'.format(setup_code, type(value), value, ex)
84 ' ' + setup_code.replace('\n', '\n '),
/dports/science/py-cirq-google/Cirq-0.13.0/cirq-core/cirq/testing/
H A Dequivalent_repr_eval_test.py24 cirq.testing.assert_equivalent_repr(t, setup_code='')
26 cirq.testing.assert_equivalent_repr(np.array([5]), setup_code='from numpy import array')
36 setup_code = """class CustomRepr: variable in test_custom_class_repr.CustomRepr
57 CustomRepr('b', "CustomRepr('b')"), setup_code=CustomRepr.setup_code
60 CustomRepr('a', "CustomRepr('a')"), setup_code=CustomRepr.setup_code
82 CustomRepr(5, "CustomRepr(5)**1"), setup_code=CustomRepr.setup_code
H A Dconsistent_protocols.py55 setup_code: str = 'import cirq\nimport numpy as np\nimport sympy',
66 setup_code=setup_code,
77 setup_code=setup_code,
90 setup_code: str = 'import cirq\nimport numpy as np\nimport sympy',
105 setup_code=setup_code,
143 setup_code: str,
160 val, setup_code=setup_code, global_vals=global_vals, local_vals=local_vals
H A Dequivalent_repr_eval.py23 setup_code: str = (
48 exec(setup_code, global_vals, local_vals)
59 'error={!r}'.format(setup_code, type(value), value, ex)
84 ' ' + setup_code.replace('\n', '\n '),
/dports/science/py-cirq-ionq/Cirq-0.13.1/cirq-core/cirq/testing/
H A Dequivalent_repr_eval_test.py24 cirq.testing.assert_equivalent_repr(t, setup_code='')
26 cirq.testing.assert_equivalent_repr(np.array([5]), setup_code='from numpy import array')
36 setup_code = """class CustomRepr: variable in test_custom_class_repr.CustomRepr
57 CustomRepr('b', "CustomRepr('b')"), setup_code=CustomRepr.setup_code
60 CustomRepr('a', "CustomRepr('a')"), setup_code=CustomRepr.setup_code
82 CustomRepr(5, "CustomRepr(5)**1"), setup_code=CustomRepr.setup_code
H A Dconsistent_protocols.py55 setup_code: str = 'import cirq\nimport numpy as np\nimport sympy',
66 setup_code=setup_code,
77 setup_code=setup_code,
90 setup_code: str = 'import cirq\nimport numpy as np\nimport sympy',
105 setup_code=setup_code,
143 setup_code: str,
160 val, setup_code=setup_code, global_vals=global_vals, local_vals=local_vals
H A Dequivalent_repr_eval.py23 setup_code: str = (
48 exec(setup_code, global_vals, local_vals)
59 'error={!r}'.format(setup_code, type(value), value, ex)
84 ' ' + setup_code.replace('\n', '\n '),
/dports/science/py-OpenFermion/OpenFermion-1.3.0/src/openfermion/testing/
H A Dwrapped.py26 setup_code: str = _setup_code) -> None:
35 cirq.testing.assert_equivalent_repr(value, setup_code=setup_code)
45 setup_code: str = _setup_code,
55 setup_code=setup_code,
/dports/devel/py-dill/dill-0.3.4/
H A Dsetup.py325 setup_code = """ variable
360 setup_code += """
364 setup_code += """
369 setup_code += """
374 setup_code += """
379 setup_code += """
384 exec(setup_code)
/dports/devel/p5-Eval-Context/Eval-Context-0.09.11/lib/Eval/
H A DContext.pm1114 my ($setup_code, $teardown_code) = ($EMPTY_STRING, $EMPTY_STRING) ;
1128 $setup_code .= $setup ;
1143 $setup_code .= $setup ;
1156 $setup_code .= $setup ;
1170 return($setup_code, $teardown_code) ;
1190 my ($setup_code, $teardown_code) = ($EMPTY_STRING, $EMPTY_STRING) ;
1200 $setup_code = "# PERSISTENT, did not exist '$variable_name'\n" . $setup_code ;
1206 $setup_code = "# PERSISTENT, existed '$variable_name'\n"
1212 $setup_code = "# PERSISTENT, existed '$variable_name', overridden \n" . $setup_code ;
1259 return($setup_code, $teardown_code) ;
[all …]
/dports/devel/p5-Eval-WithLexicals/Eval-WithLexicals-1.003005/lib/Eval/
H A DWithLexicals.pm40 sub setup_code { method in Eval::WithLexicals
56 my $setup_code = join '', $self->setup_code,
63 ${setup_code}
/dports/databases/arrow/apache-arrow-6.0.1/python/pyarrow/tests/
H A Dtest_cython.py96 setup_code = setup_template.format(pyx_file=pyx_file,
100 f.write(setup_code)
153 setup_code = setup_template.format(pyx_file=pyx_file,
157 f.write(setup_code)
/dports/www/qt5-webengine/qtwebengine-everywhere-src-5.15.2/src/3rdparty/chromium/third_party/protobuf/benchmarks/python/
H A Dpy_benchmark.py121 setup_code = ""
122 setup_code += "from %s import %s\n" % (self.module, self.test_method)
123 setup_code += "from %s import %s\n" % (self.module, self.setup_method)
124 setup_code += "%s(%s)\n" % (self.setup_method, setup_method_args)
125 return setup_code
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/protobuf/benchmarks/python/
H A Dpy_benchmark.py121 setup_code = ""
122 setup_code += "from %s import %s\n" % (self.module, self.test_method)
123 setup_code += "from %s import %s\n" % (self.module, self.setup_method)
124 setup_code += "%s(%s)\n" % (self.setup_method, setup_method_args)
125 return setup_code
/dports/net/freeswitch/freeswitch-1.10.3.-release/src/mod/languages/mod_perl/
H A Dmod_perl.c80 static int perl_parse_and_execute(PerlInterpreter * my_perl, char *input_code, char *setup_code) in perl_parse_and_execute() argument
89 if (setup_code) { in perl_parse_and_execute()
90 error = Perl_safe_eval(my_perl, setup_code); in perl_parse_and_execute()
168 static perl_parse_and_execute(PerlInterpreter * my_perl, char *input_code, char *setup_code)
175 if (setup_code)
176 Perl_safe_eval(my_perl, setup_code);
187 if (setup_code) {
188 if (!Perl_safe_eval(my_perl, setup_code)) {

1234