MCPcopy Create free account
hub / github.com/nodejs/node / test_unsorted

Method test_unsorted

test/tools/test_checkimports.py:58–67  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

56 self.assertIn('does not use "Context"', output);
57
58 def test_unsorted(self):
59 with captured_output() as (out, _err):
60 self.assertEqual(is_valid(path.join(self.fixturesDir, 'unsorted.cc')),
61 False)
62 output = out.getvalue()
63 self.assertIn('using statements aren\'t sorted in', output);
64 self.assertIn('Line 1: Actual: v8::MaybeLocal, Expected: v8::Array',
65 output);
66 self.assertIn('Line 2: Actual: v8::Array, Expected: v8::MaybeLocal',
67 output);
68
69 def test_valid(self):
70 with captured_output() as (out, _err):

Callers

nothing calls this directly

Calls 3

is_validFunction · 0.90
captured_outputFunction · 0.85
joinMethod · 0.45

Tested by

no test coverage detected