Lines Matching refs:ranges
11 ranges = genseccomp.convert_NRs_to_ranges([("b", 2), ("a", 1)])
12 self.assertEqual(len(ranges), 1)
13 self.assertEqual(ranges[0].begin, 1)
14 self.assertEqual(ranges[0].end, 3)
15 self.assertEqual(set(ranges[0].names), {"a", "b"})
17 ranges = genseccomp.convert_NRs_to_ranges([("b", 3), ("a", 1)])
18 self.assertEqual(len(ranges), 2)
19 self.assertEqual(ranges[0].begin, 1)
20 self.assertEqual(ranges[0].end, 2)
21 self.assertEqual(set(ranges[0].names), {"a"})
22 self.assertEqual(ranges[1].begin, 3)
23 self.assertEqual(ranges[1].end, 4)
24 self.assertEqual(set(ranges[1].names), {"b"})
27 ranges = genseccomp.convert_NRs_to_ranges([("b", 2), ("a", 1)])
28 bpf = genseccomp.convert_to_intermediate_bpf(ranges)
31 ranges = genseccomp.convert_NRs_to_ranges([("b", 3), ("a", 1)])
32 bpf = genseccomp.convert_to_intermediate_bpf(ranges)
38 ranges = genseccomp.convert_NRs_to_ranges([("b", 2), ("a", 1)])
39 bpf = genseccomp.convert_ranges_to_bpf(ranges, priority_syscalls=[])
44 ranges = genseccomp.convert_NRs_to_ranges([("b", 3), ("a", 1)])
45 bpf = genseccomp.convert_ranges_to_bpf(ranges, priority_syscalls=[])