Debian Codegraph @

tests/resolver_helpers/cs_resolver_helper.py

raw symbols SCIP
1 #!/usr/bin/env python
2 # -*- coding: utf-8 -*-
3 """Tests for the CS resolver helper implementation."""
4
5 import unittestscip-python python python-stdlib 3.11 unittest/__init__:
6
7 from dfvfs.libscip-python python dfvfs 20251019 `dfvfs.lib`/__init__: import definitionsscip-python python dfvfs 20251019 `dfvfs.lib.definitions`/__init__:
8 from dfvfs.pathscip-python python dfvfs 20251019 `dfvfs.path`/__init__: import factory as path_spec_factory
9 from dfvfs.resolver_helpersscip-python python dfvfs 20251019 `dfvfs.resolver_helpers`/__init__: import cs_resolver_helperscip-python python dfvfs 20251019 `dfvfs.resolver_helpers.cs_resolver_helper`/__init__:
10
11 from tests.resolver_helpersscip-python python dfvfs 20251019 `tests.resolver_helpers`/__init__: import test_libscip-python python dfvfs 20251019 `tests.resolver_helpers.test_lib`/__init__:
12
13
14 class CSResolverHelperTestscip-python python dfvfs 20251019 `tests.resolver_helpers.cs_resolver_helper`/CSResolverHelperTest#(test_libscip-python python dfvfs 20251019 `tests.resolver_helpers.test_lib`/__init__:.ResolverHelperTestCasescip-python python dfvfs 20251019 `tests.resolver_helpers.test_lib`/ResolverHelperTestCase#):
15 """Tests for the CS resolver helper implementation."""
16
17 def setUpscip-python python dfvfs 20251019 `tests.resolver_helpers.cs_resolver_helper`/CSResolverHelperTest#setUp().(selfscip-python python dfvfs 20251019 `tests.resolver_helpers.cs_resolver_helper`/CSResolverHelperTest#setUp().(self)):
18 """Sets up the needed objects used throughout the test."""
19 superscip-python python python-stdlib 3.11 builtins/super#(CSResolverHelperTestscip-python python dfvfs 20251019 `tests.resolver_helpers.cs_resolver_helper`/CSResolverHelperTest#, selfscip-python python dfvfs 20251019 `tests.resolver_helpers.cs_resolver_helper`/CSResolverHelperTest#setUp().(self)).setUpscip-python python dfvfs 20251019 `tests.resolver_helpers.test_lib`/ResolverHelperTestCase#setUp().()
20
21 test_path = selfscip-python python dfvfs 20251019 `tests.resolver_helpers.cs_resolver_helper`/CSResolverHelperTest#setUp().(self)._GetTestFilePathscip-python python dfvfs 20251019 `tests.test_lib`/BaseTestCase#_GetTestFilePath().(['fvdetest.qcow2'])
22 selfscip-python python dfvfs 20251019 `tests.resolver_helpers.cs_resolver_helper`/CSResolverHelperTest#setUp().(self)._SkipIfPathNotExistsscip-python python dfvfs 20251019 `tests.test_lib`/BaseTestCase#_SkipIfPathNotExists().(test_path)
23
24 test_os_path_spec = path_spec_factory.Factoryscip-python python dfvfs 20251019 `dfvfs.path.factory`/Factory#.NewPathSpecscip-python python dfvfs 20251019 `dfvfs.path.factory`/Factory#NewPathSpec().(
25 definitionsscip-python python dfvfs 20251019 `dfvfs.lib.definitions`/__init__:.TYPE_INDICATOR_OSscip-python python dfvfs 20251019 `dfvfs.lib.definitions`/TYPE_INDICATOR_OS., location=test_path)
26 test_qcow_path_spec = path_spec_factory.Factoryscip-python python dfvfs 20251019 `dfvfs.path.factory`/Factory#.NewPathSpecscip-python python dfvfs 20251019 `dfvfs.path.factory`/Factory#NewPathSpec().(
27 definitionsscip-python python dfvfs 20251019 `dfvfs.lib.definitions`/__init__:.TYPE_INDICATOR_QCOWscip-python python dfvfs 20251019 `dfvfs.lib.definitions`/TYPE_INDICATOR_QCOW., parent=test_os_path_spec)
28 selfscip-python python dfvfs 20251019 `tests.resolver_helpers.cs_resolver_helper`/CSResolverHelperTest#setUp().(self)._gpt_path_specscip-python python dfvfs 20251019 `tests.resolver_helpers.cs_resolver_helper`/CSResolverHelperTest#_gpt_path_spec. = path_spec_factory.Factoryscip-python python dfvfs 20251019 `dfvfs.path.factory`/Factory#.NewPathSpecscip-python python dfvfs 20251019 `dfvfs.path.factory`/Factory#NewPathSpec().(
29 definitionsscip-python python dfvfs 20251019 `dfvfs.lib.definitions`/__init__:.TYPE_INDICATOR_GPTscip-python python dfvfs 20251019 `dfvfs.lib.definitions`/TYPE_INDICATOR_GPT., location='/p1',
30 parent=test_qcow_path_spec)
31
32 def testNewFileObjectscip-python python dfvfs 20251019 `tests.resolver_helpers.cs_resolver_helper`/CSResolverHelperTest#testNewFileObject().(selfscip-python python dfvfs 20251019 `tests.resolver_helpers.cs_resolver_helper`/CSResolverHelperTest#testNewFileObject().(self)):
33 """Tests the NewFileObject function."""
34 test_cs_path_spec = path_spec_factory.Factoryscip-python python dfvfs 20251019 `dfvfs.path.factory`/Factory#.NewPathSpecscip-python python dfvfs 20251019 `dfvfs.path.factory`/Factory#NewPathSpec().(
35 definitionsscip-python python dfvfs 20251019 `dfvfs.lib.definitions`/__init__:.TYPE_INDICATOR_CSscip-python python dfvfs 20251019 `dfvfs.lib.definitions`/TYPE_INDICATOR_CS., location='/',
36 parent=selfscip-python python dfvfs 20251019 `tests.resolver_helpers.cs_resolver_helper`/CSResolverHelperTest#testNewFileObject().(self)._gpt_path_specscip-python python dfvfs 20251019 `tests.resolver_helpers.cs_resolver_helper`/CSResolverHelperTest#_gpt_path_spec.)
37
38 resolver_helper_object = cs_resolver_helperscip-python python dfvfs 20251019 `dfvfs.resolver_helpers.cs_resolver_helper`/__init__:.CSResolverHelperscip-python python dfvfs 20251019 `dfvfs.resolver_helpers.cs_resolver_helper`/CSResolverHelper#()
39 selfscip-python python dfvfs 20251019 `tests.resolver_helpers.cs_resolver_helper`/CSResolverHelperTest#testNewFileObject().(self)._TestNewFileObjectscip-python python dfvfs 20251019 `tests.resolver_helpers.test_lib`/ResolverHelperTestCase#_TestNewFileObject().(resolver_helper_object, test_cs_path_spec)
40
41 def testNewFileSystemscip-python python dfvfs 20251019 `tests.resolver_helpers.cs_resolver_helper`/CSResolverHelperTest#testNewFileSystem().(selfscip-python python dfvfs 20251019 `tests.resolver_helpers.cs_resolver_helper`/CSResolverHelperTest#testNewFileSystem().(self)):
42 """Tests the NewFileSystem function."""
43 test_cs_path_spec = path_spec_factory.Factoryscip-python python dfvfs 20251019 `dfvfs.path.factory`/Factory#.NewPathSpecscip-python python dfvfs 20251019 `dfvfs.path.factory`/Factory#NewPathSpec().(
44 definitionsscip-python python dfvfs 20251019 `dfvfs.lib.definitions`/__init__:.TYPE_INDICATOR_CSscip-python python dfvfs 20251019 `dfvfs.lib.definitions`/TYPE_INDICATOR_CS., location='/',
45 parent=selfscip-python python dfvfs 20251019 `tests.resolver_helpers.cs_resolver_helper`/CSResolverHelperTest#testNewFileSystem().(self)._gpt_path_specscip-python python dfvfs 20251019 `tests.resolver_helpers.cs_resolver_helper`/CSResolverHelperTest#_gpt_path_spec.)
46
47 resolver_helper_object = cs_resolver_helperscip-python python dfvfs 20251019 `dfvfs.resolver_helpers.cs_resolver_helper`/__init__:.CSResolverHelperscip-python python dfvfs 20251019 `dfvfs.resolver_helpers.cs_resolver_helper`/CSResolverHelper#()
48 selfscip-python python dfvfs 20251019 `tests.resolver_helpers.cs_resolver_helper`/CSResolverHelperTest#testNewFileSystem().(self)._TestNewFileSystemscip-python python dfvfs 20251019 `tests.resolver_helpers.test_lib`/ResolverHelperTestCase#_TestNewFileSystem().(resolver_helper_object, test_cs_path_spec)
49
50
51 if __name__scip-python python dfvfs 20251019 `tests.resolver_helpers.cs_resolver_helper`/ == '__main__':
52 unittestscip-python python python-stdlib 3.11 unittest/__init__:.mainscip-python python dfvfs 20251019 main/__init__:()