Searched refs:reformatted_code (Results 1 – 5 of 5) sorted by relevance
/external/yapf/yapftests/ |
D | reformatter_facebook_test.py | 379 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)
|
D | reformatter_basic_test.py | 1719 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 …]
|
D | yapf_test.py | 409 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/ |
D | file_resources.py | 80 reformatted_code, argument 97 fd.write(reformatted_code) 99 py3compat.EncodeAndWriteToStdout(reformatted_code)
|
/external/yapf/yapf/ |
D | __init__.py | 270 reformatted_code, encoding, has_change = yapf_api.FormatFile( 278 if not in_place and reformatted_code: 279 file_resources.WriteReformattedCode(filename, reformatted_code, encoding,
|