Debian Codegraph @

tests/hinoko-functions

raw
1 #!/usr/bin/env python3
2
3 from sys import exit
4 from errno import ENXIO
5
6 import gi
7 gi.require_version('Hinoko', '1.0')
8 from gi.repository import Hinoko
9
10 from helper import test_functions
11
12 types = {
13 Hinoko.FwIsoResource: (
14 'calculate_bandwidth',
15 ),
16 Hinoko.FwIsoCtxError: (
17 'quark',
18 ),
19 Hinoko.FwIsoResourceError: (
20 'quark',
21 ),
22 Hinoko.FwIsoResourceAutoError: (
23 'quark',
24 ),
25 }
26
27 for target_type, functions in types.items():
28 if not test_functions(target_type, functions):
29 exit(ENXIO)