Home
last modified time | relevance | path

Searched defs:self (Results 1 – 25 of 226) sorted by relevance

12345678910

/freebsd-src/sys/contrib/openzfs/contrib/pyzfs/libzfs_core/test/
H A Dtest_nvlist.py37 def _dict_to_nvlist_to_dict(self, props): argument
44 def _assertIntDictsEqual(self, dict1, dict2): argument
51 def _assertIntArrayDictsEqual(self, dict1, dict2): argument
63 def test_empty(self): argument
67 def test_invalid_key_type(self): argument
71 def test_invalid_val_type__tuple(self): argument
75 def test_invalid_val_type__set(self): argument
79 def test_invalid_array_val_type(self): argument
83 def test_invalid_array_of_arrays_val_type(self): argument
87 def test_string_value(self): argument
[all …]
H A Dtest_libzfs_core.py305 def setUp(self): argument
308 def tearDown(self): argument
312 def assertExists(self, name): argument
316 def assertNotExists(self, name): argument
320 def test_exists(self): argument
323 def test_exists_in_ro_pool(self): argument
326 def test_exists_failure(self): argument
329 def test_create_fs(self): argument
335 def test_create_zvol(self): argument
347 def test_create_fs_with_prop(self): argument
[all …]
/freebsd-src/tools/sched/
H A Dschedgraph.py138 def __init__(self, table): argument
144 def lookup(self, name): argument
170 def __init__(self, master, target): argument
179 def scaleset(self, value): argument
182 def set(self, value): argument
185 def setmax(self, value): argument
200 def __init__(self, master): argument
206 def set(self, str): argument
209 def clear(self): argument
212 def startup(self, str): argument
[all …]
/freebsd-src/contrib/libucl/python/tests/
H A Dtest_load.py5 def test_no_args(self): argument
9 def test_multi_args(self): argument
13 def test_none(self): argument
16 def test_null(self): argument
21 def test_int(self): argument
26 def test_braced_int(self): argument
31 def test_nested_int(self): argument
36 def test_str(self): argument
41 def test_float(self): argument
46 def test_boolean(self): argument
[all …]
H A Dtest_dump.py6 def test_no_args(self): argument
10 def test_none(self): argument
13 def test_null(self): argument
18 def test_int(self): argument
23 def test_nested_int(self): argument
28 def test_int_array(self): argument
33 def test_str(self): argument
39 def test_unicode(self): argument
44 def test_float(self): argument
49 def test_boolean(self): argument
[all …]
/freebsd-src/tests/sys/netlink/
H A Dtest_rtnl_ifaddr.py33 def setup_method(self, method): argument
42 def test_46_nofilter(self): argument
61 def test_46_filter_iface(self): argument
81 def test_46_filter_family_compat(self): argument
100 def filter_iface_family(self, family, num_items): argument
118 def test_4_broadcast(self): argument
135 def test_6_broadcast(self): argument
175 def setup_method(self, method): argument
179 def send_check_success(self, msg): argument
190 def create_msg(self, ifa): argument
[all …]
H A Dtest_rtnl_iface.py26 def setup_method(self, method): argument
30 def get_interface_byname(self, ifname): argument
48 def test_get_iface_byname_error(self): argument
60 def test_get_iface_byindex_error(self): argument
73 def test_create_iface_plain(self): argument
97 def test_create_iface_plain_retvals(self): argument
131 def test_create_iface_attrs(self): argument
161 def test_modify_iface_attrs(self): argument
201 def test_delete_iface(self): argument
247 def test_dump_ifaces_many(self): argument
[all …]
/freebsd-src/tools/tools/shlib-compat/
H A Dshlib-compat.py56 def init(self, outname): argument
86 def __init__(self): argument
90 def compile(self): argument
94 def match(self, s): argument
111 def __init__(self): argument
115 def show(self, name): argument
124 def __init__(self, enabled=True, stats=None): argument
132 def get(self, id): argument
140 def put(self, id, obj): argument
149 def replace(self, id, obj): argument
[all …]
/freebsd-src/tests/sys/net/routing/
H A Dtest_rtsock_multipath.py10 def setup_method(self, method): argument
21 def get_prefix_routes(self): argument
53 def test_rtm_multipath4(self, gws): argument
85 def test_rtm_multipath6(self, gws): argument
89 def _test_rtm_multipath(self, gws, gw_prefix: str): argument
133 def test_rtm_multipath4_add_same_eexist(self): argument
139 def test_rtm_multipath6_add_same_eexist(self): argument
144 def _test_rtm_multipath_add_same_eexist(self, gws): argument
156 def test_rtm_multipath4_del_unknown_esrch(self): argument
162 def test_rtm_multipath6_del_unknown_esrch(self): argument
[all …]
/freebsd-src/contrib/lib9p/pytest/
H A Dp9conn.py59 def __init__(self, client, op, msg, etype, errno): argument
68 def __repr__(self): argument
72 def __str__(self): argument
81 def is_ENOTSUP(self): argument
86 def _get_message(self): argument
109 def __init__(self, logger, name=None, server=None, port=STD_P9_PORT): argument
119 def __str__(self): argument
124 def get_recommended_maxio(self): argument
128 def min_maxio(self): argument
132 def connect(self, server, port=STD_P9_PORT): argument
[all …]
H A Dprotocol.py478 def __init__(self, seq): argument
490 def __repr__(self): argument
493 def pack(self, auto_vars, conditions, data, rodata): argument
534 def __init__(self, auto_vars, conditions, p9_data, pfods, index): argument
557 def invoker(self, *args, **kwargs): argument
568 def __repr__(self): argument
571 def __str__(self): argument
575 def __lt__(self, other): argument
577 def __le__(self, other): argument
579 def __eq__(self, other): argument
[all …]
/freebsd-src/tests/atf_python/sys/net/
H A Dvnet.py52 def __init__(self, iface_alias: str, iface_name: str): argument
66 ifindex(self) global() argument
70 first_ipv6(self) global() argument
75 first_ipv4(self) global() argument
79 set_vnet(self, vnet_name: str) global() argument
82 set_jailed(self, jailed: bool) global() argument
85 run_cmd(self, cmd, verbose=False) global() argument
107 setup_addr(self, _addr: str) global() argument
121 delete_addr(self, _addr: str) global() argument
132 turn_up(self) global() argument
136 enable_ipv6(self) global() argument
140 has_tentative(self) global() argument
154 __init__(self) global() argument
157 _register_iface(self, iface_name: str) global() argument
161 _list_ifaces(self) global() argument
171 create_iface(self, alias_name: str, iface_name: str) global() argument
185 cleanup_vnet_interfaces(self, vnet_name: str) global() argument
199 cleanup(self) global() argument
208 __init__( self, vnet_alias: str, vnet_name: str, jid: int, ifaces: List[VnetInterface] ) global() argument
228 run_vnet_cmd(self, cmd, verbose=True) global() argument
233 disable_dad(self) global() argument
236 set_pipe(self, pipe) global() argument
239 set_subprocess(self, p) global() argument
248 attach(self) global() argument
256 __init__(self, topology_id: str) global() argument
261 _register_vnet(self, vnet_name: str) global() argument
281 create_vnet(self, vnet_alias: str, ifaces: List[VnetInterface]) global() argument
309 cleanup(self) global() argument
337 _get_vnet_handler(self, vnet_alias: str) global() argument
341 _setup_vnet(self, vnet: VnetInstance, obj_map: Dict, pipe) global() argument
384 _get_topo_ifmap(self, topo: Dict) global() argument
401 setup_topology(self, topo: Dict, topology_id: str) global() argument
451 setup_method(self, _method) global() argument
488 cleanup(self, test_id: str) global() argument
497 wait_object(self, pipe, timeout=5) global() argument
502 wait_objects_any(self, pipe_list, timeout=5) global() argument
508 send_object(self, pipe, obj) global() argument
511 wait(self) global() argument
516 curvnet(self) global() argument
525 _setup_default_topology(self) global() argument
538 setup_method(self, method) global() argument
[all...]
/freebsd-src/tests/atf_python/sys/netlink/
H A Dnetlink.py82 def __init__(self): argument
88 def get_seq(self): argument
93 def get_af_cls(self): argument
100 def get_propmap(self, cls): argument
105 def get_name_propmap(self, cls): argument
112 def get_attr_byval(self, cls, attr_val): argument
116 def get_af_name(self, family): argument
122 def get_af_value(self, family_str: str) -> int: argument
126 def get_bitmask_str(self, cls, val): argument
153 def error_code(self): argument
[all …]
H A Dattrs.py12 def __init__(self, nla_type, data): argument
23 def nla_type(self): argument
27 def nla_len(self): argument
30 def add_nla(self, nla): argument
33 def print_attr(self, prepend=""): argument
66 def _to_bytes(self, data: bytes): argument
72 def __bytes__(self): argument
75 def _print_attr_value(self): argument
80 def __init__(self, nla_type, val): argument
84 def get_nla(self, nla_type): argument
[all …]
H A Dmessage.py36 def __init__(self, helper, nlmsg_type): argument
46 def set_request(self, need_ack=True): argument
51 def add_nlflags(self, flags: List): argument
57 def add_nla(self, nla): argument
60 def _get_nla(self, nla_list, nla_type): argument
67 def get_nla(self, nla_type): argument
76 def is_type(self, nlmsg_type): argument
80 def is_reply(self, hdr): argument
84 def msg_name(self): argument
87 def _get_nl_category(self): argument
[all …]
/freebsd-src/contrib/ntp/sntp/libevent/
H A Devent_rpcgen.py57 def __init__(self, why): # pylint: disable=super-init-not-called argument
60 def __str__(self): argument
66 def __init__(self, name): argument
72 def AddEntry(self, entry): argument
83 def Name(self): argument
86 def EntryTagName(self, entry): argument
102 def __init__(self, name): argument
105 def PrintTags(self, filep): argument
114 def PrintForwardDeclaration(self, filep): argument
117 def PrintDeclaration(self, filep): argument
[all …]
/freebsd-src/contrib/libevent/
H A Devent_rpcgen.py57 def __init__(self, why): # pylint: disable=super-init-not-called argument
60 def __str__(self): argument
66 def __init__(self, name): argument
72 def AddEntry(self, entry): argument
83 def Name(self): argument
86 def EntryTagName(self, entry): argument
102 def __init__(self, name): argument
105 def PrintTags(self, filep): argument
114 def PrintForwardDeclaration(self, filep): argument
117 def PrintDeclaration(self, filep): argument
[all …]
/freebsd-src/tests/atf_python/
H A Datf_pytest.py17 def runtest(self): argument
27 def setup_method_noop(self, method): argument
31 def teardown_method_noop(self, method): argument
37 def __init__(self, obj, has_cleanup): argument
44 def _get_test_description(self, obj): argument
76 def _convert_marks(self, obj) -> Dict[str, Any]: argument
102 def as_lines(self) -> List[str]: argument
119 def __init__(self, report_file_name: Optional[str]): argument
124 def setup_configure(self): argument
129 def setup_method_pre(self, item): argument
[all …]
/freebsd-src/tests/sys/opencrypto/
H A Dcryptotest.py66 def test_xts(self): argument
71 def test_cbc(self): argument
76 def test_ccm(self): argument
84 def test_gcm(self): argument
91 def runGCM(self, fname, mode): argument
106 def runGCMWithParser(self, parser, mode): argument
165 def runCBC(self, fname): argument
170 def runCBCWithParser(self, parser): argument
196 def runXTS(self, fname, meth): argument
202 def runXTSWithParser(self, parser, meth): argument
[all …]
/freebsd-src/tests/examples/
H A Dtest_examples.py22 def test_one(self): argument
32 def test_one(self): argument
49 def test_two(self): argument
53 def test_get_properties(self, request): argument
64 def test_syscall_failure(self): argument
79 def test_parametrize(self, family_tuple): argument
89 def test_with_cleanup(self): argument
92 def cleanup_test_with_cleanup(self, test_id): argument
117 def setup_method(self, method): argument
130 def test_ping(self): argument
[all …]
/freebsd-src/contrib/googletest/googletest/test/
H A Dgoogletest-filter-unittest.py259 def AssertSetEqual(self, lhs, rhs): argument
268 def AssertPartitionIsValid(self, set_var, list_of_sets): argument
277 def AdjustForParameterizedTests(self, tests_to_run): argument
286 def RunAndVerify(self, gtest_filter, tests_to_run): argument
317 self, argument
361 def RunAndVerifyAllowingDisabled(self, gtest_filter, tests_to_run): argument
382 def setUp(self): argument
395 def testDefaultBehavior(self): argument
400 def testDefaultBehaviorWithShards(self): argument
409 def testEmptyFilter(self): argument
[all …]
H A Dgoogletest-failfast-unittest.py120 def testDefaultBehavior(self): argument
126 def testGoogletestFlag(self): argument
135 def testGoogletestEnvVar(self): argument
151 def testBazelEnvVar(self): argument
167 def testFlagOverridesEnvVar(self): argument
178 def testGoogletestEnvVarOverridesBazelEnvVar(self): argument
191 def testEventListener(self): argument
226 def assertXmlResultCount(self, result, count, xml): argument
234 def assertXmlStatusCount(self, status, count, xml): argument
243 self, argument
[all …]
H A Dgoogletest-catch-exceptions-test.py88 def TestSehExceptions(self, test_output): argument
120 def testCatchesSehExceptionsWithCxxExceptionsEnabled(self): argument
123 def testCatchesSehExceptionsWithCxxExceptionsDisabled(self): argument
136 def testCatchesCxxExceptionsInFixtureConstructor(self): argument
158 def testCatchesCxxExceptionsInFixtureDestructor(self): argument
173 def testCatchesCxxExceptionsInSetUpTestCase(self): argument
211 def testCatchesCxxExceptionsInTearDownTestCase(self): argument
219 def testCatchesCxxExceptionsInSetUp(self): argument
250 def testCatchesCxxExceptionsInTearDown(self): argument
268 def testCatchesCxxExceptionsInTestBody(self): argument
[all …]
/freebsd-src/tests/sys/netinet6/
H A Dtest_ip6_output.py26 def __init__(self, ip: str, port: int, ifname: str = None): argument
48 def recv(self): argument
76 def _vnet2_handler(self, vnet, ip: str, os_ifname: str = None): argument
91 def vnet2_handler(self, vnet): argument
96 def test_output6_base(self): argument
118 def test_output6_nhop(self): argument
174 def test_output6_pktinfo(self, params): argument
224 def vnet2_handler(self, vnet): argument
234 def test_output6_linklocal(self): argument
261 def vnet2_handler(self, vnet): argument
[all …]
/freebsd-src/sys/contrib/openzfs/tests/test-runner/bin/
H A Dtest-runner.py.in75 def __init__(self): argument
84 def done(self, proc, killed, reran): argument
116 __init__(self, stream, debug=False) global() argument
122 fileno(self) global() argument
125 read(self, drain=0) global() argument
133 _read(self) global() argument
161 __init__(self, pathname, identifier=None, outputdir=None, timeout=None, user=None, tags=None) global() argument
178 __str__(self) global() argument
187 kill_cmd(self, proc, options, kmemleak, keyboard_interrupt=False) global() argument
220 update_cmd_privs(self, cmd, user) global() argument
244 collect_output(self, proc, debug=False) global() argument
263 run(self, options, dryrun=None, kmemleak=None) global() argument
333 skip(self) global() argument
346 log(self, options, suppress_console=False) global() argument
409 __init__(self, pathname, pre=None, pre_user=None, post=None, post_user=None, failsafe=None, failsafe_user=None, tags=None, **kwargs) global() argument
421 __str__(self) global() argument
443 verify(self) global() argument
465 run(self, options, dryrun=None, kmemleak=None) global() argument
509 __init__(self, pathname, tests=None, **kwargs) global() argument
513 __str__(self) global() argument
536 filter(self, keeplist) global() argument
539 verify(self) global() argument
586 run(self, options, dryrun=None, kmemleak=None) global() argument
635 __init__(self, options) global() argument
657 __str__(self) global() argument
667 addtest(self, pathname, options) global() argument
680 addtestgroup(self, dirname, filenames, options) global() argument
701 filter(self, keeplist) global() argument
719 read(self, options) global() argument
790 write(self, options) global() argument
825 complete_outputdirs(self) global() argument
857 setup_logging(self, options) global() argument
877 run(self, options) global() argument
907 summary(self) global() argument
[all...]

12345678910