File Explorer

/var/lang/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator

This explorer reads the filesystem of the server it runs on, so /workspace/user isn't present here. Browsing and the terminal still work against this server's own disk from /.

msvs_test.py1.2 KB · 45 lines
#!/usr/bin/env python3# 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 msvs.py file.""" import unittestfrom io import StringIO from gyp.generator import msvs  class TestSequenceFunctions(unittest.TestCase):    def setUp(self):        self.stderr = StringIO()     def test_GetLibraries(self):        self.assertEqual(msvs._GetLibraries({}), [])        self.assertEqual(msvs._GetLibraries({"libraries": []}), [])        self.assertEqual(            msvs._GetLibraries({"other": "foo", "libraries": ["a.lib"]}), ["a.lib"]        )        self.assertEqual(msvs._GetLibraries({"libraries": ["-la"]}), ["a.lib"])        self.assertEqual(            msvs._GetLibraries(                {                    "libraries": [                        "a.lib",                        "b.lib",                        "c.lib",                        "-lb.lib",                        "-lb.lib",                        "d.lib",                        "a.lib",                    ]                }            ),            ["c.lib", "b.lib", "d.lib", "a.lib"],        )  if __name__ == "__main__":    unittest.main()