Home
last modified time | relevance | path

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

/external/yapf/yapftests/
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)
Dreformatter_basic_test.py1719 reformatted_code = reformatter.Reformat(uwlines)
1720 self.assertCodeEqual(code, reformatted_code)
1722 uwlines = yapf_test_helper.ParseAndUnwrap(reformatted_code)
1723 reformatted_code = reformatter.Reformat(uwlines)
1724 self.assertCodeEqual(code, reformatted_code)
1746 reformatted_code = reformatter.Reformat(uwlines)
1747 self.assertCodeEqual(expected_formatted_code, reformatted_code)
1749 uwlines = yapf_test_helper.ParseAndUnwrap(reformatted_code)
1750 reformatted_code = reformatter.Reformat(uwlines)
1751 self.assertCodeEqual(expected_formatted_code, reformatted_code)
[all …]
Dyapf_test.py409 reformatted_code, stderrdata = p.communicate(unformatted.encode('utf-8'))
411 self.assertMultiLineEqual(reformatted_code.decode('utf-8'), expected)
438 reformatted_code = fd.read()
439 self.assertEqual(reformatted_code, expected_formatted_code)
449 reformatted_code = fd.read()
450 self.assertEqual(reformatted_code, expected_formatted_code)
460 reformatted_code = fd.read()
461 self.assertEqual(reformatted_code, expected_formatted_code)
/external/yapf/yapf/yapflib/
Dfile_resources.py80 reformatted_code, argument
97 fd.write(reformatted_code)
99 py3compat.EncodeAndWriteToStdout(reformatted_code)
/external/yapf/yapf/
D__init__.py270 reformatted_code, encoding, has_change = yapf_api.FormatFile(
278 if not in_place and reformatted_code:
279 file_resources.WriteReformattedCode(filename, reformatted_code, encoding,