Home
last modified time | relevance | path

Searched refs:reformatted_code (Results 1 – 6 of 6) sorted by relevance

/dports/textproc/py-yapf/yapf-0.31.0/yapftests/
H A Dreformatter_facebook_test.py379 reformatted_code = reformatter.Reformat(uwlines)
380 self.assertCodeEqual(code, reformatted_code)
382 uwlines = yapf_test_helper.ParseAndUnwrap(reformatted_code)
383 reformatted_code = reformatter.Reformat(uwlines)
384 self.assertCodeEqual(code, reformatted_code)
H A Dreformatter_basic_test.py2004 reformatted_code = reformatter.Reformat(uwlines)
2005 self.assertCodeEqual(code, reformatted_code)
2008 reformatted_code = reformatter.Reformat(uwlines)
2009 self.assertCodeEqual(code, reformatted_code)
2031 reformatted_code = reformatter.Reformat(uwlines)
2035 reformatted_code = reformatter.Reformat(uwlines)
2102 reformatted_code = reformatter.Reformat(uwlines)
2103 self.assertCodeEqual(code, reformatted_code)
2106 reformatted_code = reformatter.Reformat(uwlines)
2107 self.assertCodeEqual(code, reformatted_code)
[all …]
H A Dreformatter_pep8_test.py694 reformatted_code = reformatter.Reformat(uwlines)
695 self.assertCodeEqual(expected_formatted_code, reformatted_code)
697 uwlines = yapf_test_helper.ParseAndUnwrap(reformatted_code)
698 reformatted_code = reformatter.Reformat(uwlines)
699 self.assertCodeEqual(expected_formatted_code, reformatted_code)
H A Dyapf_test.py426 reformatted_code, stderrdata = p.communicate(
429 self.assertMultiLineEqual(reformatted_code.decode('utf-8'), expected)
456 reformatted_code = fd.read()
457 self.assertEqual(reformatted_code, expected_formatted_code)
467 reformatted_code = fd.read()
468 self.assertEqual(reformatted_code, expected_formatted_code)
478 reformatted_code = fd.read()
479 self.assertEqual(reformatted_code, expected_formatted_code)
/dports/textproc/py-yapf/yapf-0.31.0/yapf/yapflib/
H A Dfile_resources.py138 reformatted_code, argument
155 fd.write(reformatted_code)
157 py3compat.EncodeAndWriteToStdout(reformatted_code)
/dports/textproc/py-yapf/yapf-0.31.0/yapf/
H A D__init__.py227 reformatted_code, encoding, has_change = yapf_api.FormatFile(
241 if not in_place and not quiet and reformatted_code:
242 file_resources.WriteReformattedCode(filename, reformatted_code, encoding,