hatch-xclam 0.7.0.dev11__py3-none-any.whl → 0.7.0.dev13__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- hatch_xclam-0.7.0.dev13.dist-info/METADATA +150 -0
- {hatch_xclam-0.7.0.dev11.dist-info → hatch_xclam-0.7.0.dev13.dist-info}/RECORD +6 -65
- hatch_xclam-0.7.0.dev13.dist-info/top_level.txt +2 -0
- hatch_xclam-0.7.0.dev11.dist-info/METADATA +0 -103
- hatch_xclam-0.7.0.dev11.dist-info/top_level.txt +0 -3
- node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py +0 -45
- node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/MSVSNew.py +0 -365
- node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/MSVSProject.py +0 -206
- node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/MSVSSettings.py +0 -1272
- node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/MSVSSettings_test.py +0 -1547
- node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/MSVSToolFile.py +0 -59
- node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/MSVSUserFile.py +0 -152
- node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/MSVSUtil.py +0 -270
- node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/MSVSVersion.py +0 -574
- node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/__init__.py +0 -704
- node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/common.py +0 -709
- node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/common_test.py +0 -173
- node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/easy_xml.py +0 -169
- node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/easy_xml_test.py +0 -113
- node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/flock_tool.py +0 -55
- node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/__init__.py +0 -0
- node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/analyzer.py +0 -805
- node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/android.py +0 -1172
- node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/cmake.py +0 -1319
- node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/compile_commands_json.py +0 -128
- node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/dump_dependency_json.py +0 -104
- node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/eclipse.py +0 -462
- node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/gypd.py +0 -89
- node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/gypsh.py +0 -56
- node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/make.py +0 -2745
- node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/msvs.py +0 -3976
- node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/msvs_test.py +0 -44
- node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/ninja.py +0 -2965
- node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/ninja_test.py +0 -67
- node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/xcode.py +0 -1391
- node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/xcode_test.py +0 -26
- node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/input.py +0 -3112
- node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/input_test.py +0 -99
- node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/mac_tool.py +0 -767
- node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/msvs_emulation.py +0 -1260
- node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/ninja_syntax.py +0 -174
- node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/simple_copy.py +0 -61
- node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/win_tool.py +0 -373
- node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py +0 -1939
- node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation_test.py +0 -54
- node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/xcode_ninja.py +0 -303
- node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/xcodeproj_file.py +0 -3196
- node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/xml_fix.py +0 -65
- node_modules/npm/node_modules/node-gyp/gyp/pylib/packaging/__init__.py +0 -15
- node_modules/npm/node_modules/node-gyp/gyp/pylib/packaging/_elffile.py +0 -108
- node_modules/npm/node_modules/node-gyp/gyp/pylib/packaging/_manylinux.py +0 -252
- node_modules/npm/node_modules/node-gyp/gyp/pylib/packaging/_musllinux.py +0 -83
- node_modules/npm/node_modules/node-gyp/gyp/pylib/packaging/_parser.py +0 -359
- node_modules/npm/node_modules/node-gyp/gyp/pylib/packaging/_structures.py +0 -61
- node_modules/npm/node_modules/node-gyp/gyp/pylib/packaging/_tokenizer.py +0 -192
- node_modules/npm/node_modules/node-gyp/gyp/pylib/packaging/markers.py +0 -252
- node_modules/npm/node_modules/node-gyp/gyp/pylib/packaging/metadata.py +0 -825
- node_modules/npm/node_modules/node-gyp/gyp/pylib/packaging/py.typed +0 -0
- node_modules/npm/node_modules/node-gyp/gyp/pylib/packaging/requirements.py +0 -90
- node_modules/npm/node_modules/node-gyp/gyp/pylib/packaging/specifiers.py +0 -1030
- node_modules/npm/node_modules/node-gyp/gyp/pylib/packaging/tags.py +0 -553
- node_modules/npm/node_modules/node-gyp/gyp/pylib/packaging/utils.py +0 -172
- node_modules/npm/node_modules/node-gyp/gyp/pylib/packaging/version.py +0 -563
- node_modules/npm/node_modules/node-gyp/gyp/test_gyp.py +0 -261
- {hatch_xclam-0.7.0.dev11.dist-info → hatch_xclam-0.7.0.dev13.dist-info}/WHEEL +0 -0
- {hatch_xclam-0.7.0.dev11.dist-info → hatch_xclam-0.7.0.dev13.dist-info}/entry_points.txt +0 -0
- {hatch_xclam-0.7.0.dev11.dist-info → hatch_xclam-0.7.0.dev13.dist-info}/licenses/LICENSE +0 -0
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env python3
|
|
2
|
-
|
|
3
|
-
# Copyright 2013 Google Inc. All rights reserved.
|
|
4
|
-
# Use of this source code is governed by a BSD-style license that can be
|
|
5
|
-
# found in the LICENSE file.
|
|
6
|
-
|
|
7
|
-
"""Unit tests for the input.py file."""
|
|
8
|
-
|
|
9
|
-
import unittest
|
|
10
|
-
|
|
11
|
-
import gyp.input
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
class TestFindCycles(unittest.TestCase):
|
|
15
|
-
def setUp(self):
|
|
16
|
-
self.nodes = {}
|
|
17
|
-
for x in ("a", "b", "c", "d", "e"):
|
|
18
|
-
self.nodes[x] = gyp.input.DependencyGraphNode(x)
|
|
19
|
-
|
|
20
|
-
def _create_dependency(self, dependent, dependency):
|
|
21
|
-
dependent.dependencies.append(dependency)
|
|
22
|
-
dependency.dependents.append(dependent)
|
|
23
|
-
|
|
24
|
-
def test_no_cycle_empty_graph(self):
|
|
25
|
-
for label, node in self.nodes.items():
|
|
26
|
-
self.assertEqual([], node.FindCycles())
|
|
27
|
-
|
|
28
|
-
def test_no_cycle_line(self):
|
|
29
|
-
self._create_dependency(self.nodes["a"], self.nodes["b"])
|
|
30
|
-
self._create_dependency(self.nodes["b"], self.nodes["c"])
|
|
31
|
-
self._create_dependency(self.nodes["c"], self.nodes["d"])
|
|
32
|
-
|
|
33
|
-
for label, node in self.nodes.items():
|
|
34
|
-
self.assertEqual([], node.FindCycles())
|
|
35
|
-
|
|
36
|
-
def test_no_cycle_dag(self):
|
|
37
|
-
self._create_dependency(self.nodes["a"], self.nodes["b"])
|
|
38
|
-
self._create_dependency(self.nodes["a"], self.nodes["c"])
|
|
39
|
-
self._create_dependency(self.nodes["b"], self.nodes["c"])
|
|
40
|
-
|
|
41
|
-
for label, node in self.nodes.items():
|
|
42
|
-
self.assertEqual([], node.FindCycles())
|
|
43
|
-
|
|
44
|
-
def test_cycle_self_reference(self):
|
|
45
|
-
self._create_dependency(self.nodes["a"], self.nodes["a"])
|
|
46
|
-
|
|
47
|
-
self.assertEqual(
|
|
48
|
-
[[self.nodes["a"], self.nodes["a"]]], self.nodes["a"].FindCycles()
|
|
49
|
-
)
|
|
50
|
-
|
|
51
|
-
def test_cycle_two_nodes(self):
|
|
52
|
-
self._create_dependency(self.nodes["a"], self.nodes["b"])
|
|
53
|
-
self._create_dependency(self.nodes["b"], self.nodes["a"])
|
|
54
|
-
|
|
55
|
-
self.assertEqual(
|
|
56
|
-
[[self.nodes["a"], self.nodes["b"], self.nodes["a"]]],
|
|
57
|
-
self.nodes["a"].FindCycles(),
|
|
58
|
-
)
|
|
59
|
-
self.assertEqual(
|
|
60
|
-
[[self.nodes["b"], self.nodes["a"], self.nodes["b"]]],
|
|
61
|
-
self.nodes["b"].FindCycles(),
|
|
62
|
-
)
|
|
63
|
-
|
|
64
|
-
def test_two_cycles(self):
|
|
65
|
-
self._create_dependency(self.nodes["a"], self.nodes["b"])
|
|
66
|
-
self._create_dependency(self.nodes["b"], self.nodes["a"])
|
|
67
|
-
|
|
68
|
-
self._create_dependency(self.nodes["b"], self.nodes["c"])
|
|
69
|
-
self._create_dependency(self.nodes["c"], self.nodes["b"])
|
|
70
|
-
|
|
71
|
-
cycles = self.nodes["a"].FindCycles()
|
|
72
|
-
self.assertTrue([self.nodes["a"], self.nodes["b"], self.nodes["a"]] in cycles)
|
|
73
|
-
self.assertTrue([self.nodes["b"], self.nodes["c"], self.nodes["b"]] in cycles)
|
|
74
|
-
self.assertEqual(2, len(cycles))
|
|
75
|
-
|
|
76
|
-
def test_big_cycle(self):
|
|
77
|
-
self._create_dependency(self.nodes["a"], self.nodes["b"])
|
|
78
|
-
self._create_dependency(self.nodes["b"], self.nodes["c"])
|
|
79
|
-
self._create_dependency(self.nodes["c"], self.nodes["d"])
|
|
80
|
-
self._create_dependency(self.nodes["d"], self.nodes["e"])
|
|
81
|
-
self._create_dependency(self.nodes["e"], self.nodes["a"])
|
|
82
|
-
|
|
83
|
-
self.assertEqual(
|
|
84
|
-
[
|
|
85
|
-
[
|
|
86
|
-
self.nodes["a"],
|
|
87
|
-
self.nodes["b"],
|
|
88
|
-
self.nodes["c"],
|
|
89
|
-
self.nodes["d"],
|
|
90
|
-
self.nodes["e"],
|
|
91
|
-
self.nodes["a"],
|
|
92
|
-
]
|
|
93
|
-
],
|
|
94
|
-
self.nodes["a"].FindCycles(),
|
|
95
|
-
)
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
if __name__ == "__main__":
|
|
99
|
-
unittest.main()
|