Lines Matching refs:unformatted_code
45 def _Check(self, unformatted_code, expected_formatted_code): argument
47 unformatted_code, style_config='yapf')
51 unformatted_code = textwrap.dedent("""\
54 self._Check(unformatted_code, unformatted_code)
57 unformatted_code = textwrap.dedent("""\
64 self._Check(unformatted_code, expected_formatted_code)
68 unformatted_code = textwrap.dedent("""a.print\n""")
70 self._Check(unformatted_code, expected_formatted_code)
92 unformatted_code = textwrap.dedent(u"""\
104 with utils.TempFileContents(self.test_tmpdir, unformatted_code) as filepath:
112 unformatted_code = textwrap.dedent(u"""\
128 with utils.TempFileContents(self.test_tmpdir, unformatted_code) as filepath:
133 unformatted_code = textwrap.dedent(u"""\
151 with utils.TempFileContents(self.test_tmpdir, unformatted_code) as filepath:
156 unformatted_code = textwrap.dedent(u"""\
179 with utils.TempFileContents(self.test_tmpdir, unformatted_code) as filepath:
213 unformatted_code = textwrap.dedent(u"""\
234 with utils.TempFileContents(self.test_tmpdir, unformatted_code) as filepath:
243 unformatted_code = textwrap.dedent(u"""\
247 with utils.TempFileContents(self.test_tmpdir, unformatted_code) as filepath:
252 unformatted_code = u'True==False\n'
254 with utils.TempFileContents(self.test_tmpdir, unformatted_code) as filepath:
304 unformatted_code = textwrap.dedent(u"""\
318 with utils.TempFileContents(self.test_tmpdir, unformatted_code) as filepath:
323 unformatted_code = textwrap.dedent(u"""\
336 with utils.TempFileContents(self.test_tmpdir, unformatted_code) as filepath:
435 unformatted_code = textwrap.dedent(u"""\
442 self.test_tmpdir, unformatted_code, suffix='.py') as filepath:
446 unformatted_code = textwrap.dedent(u"""\
455 self.test_tmpdir, unformatted_code, suffix='.py') as filepath:
463 unformatted_code = u'\n\n'
466 self.test_tmpdir, unformatted_code, suffix='.py') as filepath:
474 unformatted_code = u''
477 self.test_tmpdir, unformatted_code, suffix='.py') as filepath:
485 unformatted_code = textwrap.dedent("""\
493 self.assertYapfReformats(unformatted_code, expected_formatted_code)
496 unformatted_code = textwrap.dedent("""\
502 self.assertYapfReformats(unformatted_code, expected_formatted_code)
505 unformatted_code = textwrap.dedent("""\
514 unformatted_code,
519 unformatted_code = textwrap.dedent("""\
534 unformatted_code,
539 unformatted_code = textwrap.dedent("""\
553 unformatted_code,
558 unformatted_code = textwrap.dedent("""\
564 self.assertYapfReformats(unformatted_code, expected_formatted_code)
567 unformatted_code = textwrap.dedent(u"""\
577 self.test_tmpdir, unformatted_code, suffix='.py') as filepath:
585 unformatted_code = textwrap.dedent("""\
610 unformatted_code,
615 unformatted_code = textwrap.dedent("""\
630 unformatted_code,
635 unformatted_code = textwrap.dedent("""\
659 self.assertYapfReformats(unformatted_code, expected_formatted_code)
662 unformatted_code = textwrap.dedent("""\
698 self.assertYapfReformats(unformatted_code, expected_formatted_code)
701 unformatted_code = textwrap.dedent("""\
721 self.assertYapfReformats(unformatted_code, expected_formatted_code)
724 unformatted_code = textwrap.dedent("""\
736 self.assertYapfReformats(unformatted_code, expected_formatted_code)
739 unformatted_code = textwrap.dedent("""\
753 self.assertYapfReformats(unformatted_code, expected_formatted_code)
756 unformatted_code = textwrap.dedent("""\
776 self.assertYapfReformats(unformatted_code, expected_formatted_code)
779 unformatted_code = textwrap.dedent("""\
805 unformatted_code,
809 unformatted_code = textwrap.dedent("""\
842 unformatted_code,
846 unformatted_code = textwrap.dedent("""\
856 unformatted_code, unformatted_code, extra_options=['--lines', '2-2'])
859 unformatted_code = """\
876 unformatted_code,
881 unformatted_code = textwrap.dedent("""\
894 unformatted_code,
899 unformatted_code = textwrap.dedent('''\
920 unformatted_code,
925 unformatted_code = textwrap.dedent("""\
950 unformatted_code,
955 unformatted_code = textwrap.dedent("""\
990 unformatted_code,
995 unformatted_code = textwrap.dedent("""\
1016 unformatted_code,
1021 unformatted_code = textwrap.dedent("""\
1040 unformatted_code,
1045 unformatted_code = textwrap.dedent("""\
1066 unformatted_code,
1071 unformatted_code = textwrap.dedent("""\
1088 unformatted_code,
1094 unformatted_code = textwrap.dedent("""\
1105 unformatted_code,
1117 unformatted_code = textwrap.dedent("""\
1136 unformatted_code,
1147 unformatted_code = textwrap.dedent("""\
1169 unformatted_code,
1174 unformatted_code = textwrap.dedent("""\
1185 unformatted_code,
1190 unformatted_code = textwrap.dedent("""\
1219 unformatted_code,
1224 unformatted_code = textwrap.dedent("""\
1239 unformatted_code,
1244 unformatted_code = """\
1262 unformatted_code,
1267 unformatted_code = """\
1286 unformatted_code,
1291 unformatted_code = """\
1314 unformatted_code,
1319 unformatted_code = """\
1342 unformatted_code,
1347 unformatted_code = """\
1369 unformatted_code,
1374 unformatted_code = """\
1396 unformatted_code,
1401 unformatted_code = textwrap.dedent("""\
1420 unformatted_code,
1425 unformatted_code = textwrap.dedent("""\
1446 unformatted_code,
1451 unformatted_code = textwrap.dedent("""\
1482 unformatted_code,
1487 unformatted_code = textwrap.dedent("""\
1506 unformatted_code,
1512 unformatted_code = """\
1519 unformatted_code,
1529 unformatted_code = 'print("中文")\n'
1532 unformatted_code,
1537 unformatted_code = """\
1556 unformatted_code,
1582 def _Check(self, unformatted_code, expected_formatted_code): argument
1584 unformatted_code, style_config=style.SetGlobalStyle(self._OwnStyle()))
1588 unformatted_code = textwrap.dedent("""\
1596 self._Check(unformatted_code, expected_formatted_code)
1611 def _Check(self, unformatted_code, expected_formatted_code): argument
1613 unformatted_code, style_config=style.SetGlobalStyle(self._OwnStyle()))
1617 unformatted_code = textwrap.dedent("""\
1635 self._Check(unformatted_code, expected_formatted_code)
1638 unformatted_code = textwrap.dedent("""\
1654 self._Check(unformatted_code, expected_formatted_code)
1657 unformatted_code = textwrap.dedent("""\
1673 self._Check(unformatted_code, expected_formatted_code)
1676 unformatted_code = textwrap.dedent("""\
1699 self._Check(unformatted_code, expected_formatted_code)
1702 unformatted_code = textwrap.dedent("""\
1722 self._Check(unformatted_code, expected_formatted_code)
1725 unformatted_code = textwrap.dedent("""\
1755 self._Check(unformatted_code, expected_formatted_code)
1758 unformatted_code = textwrap.dedent("""\
1780 self._Check(unformatted_code, expected_formatted_code)
1783 unformatted_code = textwrap.dedent("""\
1809 self._Check(unformatted_code, expected_formatted_code)
1812 unformatted_code = textwrap.dedent("""\
1834 self._Check(unformatted_code, expected_formatted_code)
1837 unformatted_code = textwrap.dedent("""\
1861 self._Check(unformatted_code, expected_formatted_code)
1864 unformatted_code = textwrap.dedent("""\
1876 self._Check(unformatted_code, expected_formatted_code)
1889 def _Check(self, unformatted_code, expected_formatted_code): argument
1891 unformatted_code, style_config=style.SetGlobalStyle(self._OwnStyle()))
1908 unformatted_code = textwrap.dedent("""\
1943 self._Check(unformatted_code, expected_formatted_code)
1956 unformatted_code = textwrap.dedent("""\
1999 self._Check(unformatted_code, expected_formatted_code)
2012 unformatted_code = textwrap.dedent("""\
2059 self._Check(unformatted_code, expected_formatted_code)