Lines Matching refs:unformatted_code
41 def _Check(self, unformatted_code, expected_formatted_code): argument
43 unformatted_code, style_config='chromium')
47 unformatted_code = textwrap.dedent("""\
50 self._Check(unformatted_code, unformatted_code)
53 unformatted_code = textwrap.dedent("""\
60 self._Check(unformatted_code, expected_formatted_code)
82 unformatted_code = textwrap.dedent(u"""\
94 with utils.TempFileContents(self.test_tmpdir, unformatted_code) as filepath:
103 unformatted_code = textwrap.dedent(u"""\
119 with utils.TempFileContents(self.test_tmpdir, unformatted_code) as filepath:
124 unformatted_code = textwrap.dedent(u"""\
142 with utils.TempFileContents(self.test_tmpdir, unformatted_code) as filepath:
147 unformatted_code = textwrap.dedent(u"""\
170 with utils.TempFileContents(self.test_tmpdir, unformatted_code) as filepath:
191 unformatted_code = textwrap.dedent(u"""\
212 with utils.TempFileContents(self.test_tmpdir, unformatted_code) as filepath:
221 unformatted_code = textwrap.dedent(u"""\
225 with utils.TempFileContents(self.test_tmpdir, unformatted_code) as filepath:
230 unformatted_code = u'True==False\n'
232 with utils.TempFileContents(self.test_tmpdir, unformatted_code) as filepath:
282 unformatted_code = textwrap.dedent(u"""\
296 with utils.TempFileContents(self.test_tmpdir, unformatted_code) as filepath:
301 unformatted_code = textwrap.dedent(u"""\
314 with utils.TempFileContents(self.test_tmpdir, unformatted_code) as filepath:
414 unformatted_code = textwrap.dedent(u"""\
421 self.test_tmpdir, unformatted_code, suffix='.py') as filepath:
425 unformatted_code = textwrap.dedent(u"""\
434 self.test_tmpdir, unformatted_code, suffix='.py') as filepath:
442 unformatted_code = u'\n\n'
445 self.test_tmpdir, unformatted_code, suffix='.py') as filepath:
453 unformatted_code = u''
456 self.test_tmpdir, unformatted_code, suffix='.py') as filepath:
464 unformatted_code = textwrap.dedent("""\
472 self.assertYapfReformats(unformatted_code, expected_formatted_code)
475 unformatted_code = textwrap.dedent("""\
481 self.assertYapfReformats(unformatted_code, expected_formatted_code)
484 unformatted_code = textwrap.dedent("""\
493 unformatted_code,
498 unformatted_code = textwrap.dedent("""\
513 unformatted_code,
518 unformatted_code = textwrap.dedent("""\
524 self.assertYapfReformats(unformatted_code, expected_formatted_code)
527 unformatted_code = textwrap.dedent(u"""\
537 self.test_tmpdir, unformatted_code, suffix='.py') as filepath:
544 unformatted_code = textwrap.dedent("""\
569 unformatted_code,
574 unformatted_code = textwrap.dedent("""\
589 unformatted_code,
594 unformatted_code = textwrap.dedent("""\
618 self.assertYapfReformats(unformatted_code, expected_formatted_code)
621 unformatted_code = textwrap.dedent("""\
657 self.assertYapfReformats(unformatted_code, expected_formatted_code)
660 unformatted_code = textwrap.dedent("""\
680 self.assertYapfReformats(unformatted_code, expected_formatted_code)
683 unformatted_code = textwrap.dedent("""\
695 self.assertYapfReformats(unformatted_code, expected_formatted_code)
698 unformatted_code = textwrap.dedent("""\
710 self.assertYapfReformats(unformatted_code, expected_formatted_code)
713 unformatted_code = textwrap.dedent("""\
733 self.assertYapfReformats(unformatted_code, expected_formatted_code)
736 unformatted_code = textwrap.dedent("""\
762 unformatted_code,
766 unformatted_code = textwrap.dedent("""\
799 unformatted_code,
803 unformatted_code = textwrap.dedent("""\
813 unformatted_code, unformatted_code, extra_options=['--lines', '2-2'])
816 unformatted_code = textwrap.dedent("""\
831 unformatted_code,
836 unformatted_code = textwrap.dedent('''\
859 unformatted_code,
864 unformatted_code = textwrap.dedent("""\
889 unformatted_code,
894 unformatted_code = textwrap.dedent("""\
929 unformatted_code,
934 unformatted_code = textwrap.dedent("""\
955 unformatted_code,
960 unformatted_code = textwrap.dedent("""\
981 unformatted_code,
986 unformatted_code = textwrap.dedent("""\
1003 unformatted_code,
1009 unformatted_code = textwrap.dedent("""\
1020 unformatted_code,
1032 unformatted_code = textwrap.dedent("""\
1051 unformatted_code,
1062 unformatted_code = textwrap.dedent("""\
1084 unformatted_code,
1089 unformatted_code = textwrap.dedent("""\
1101 unformatted_code,
1106 unformatted_code = textwrap.dedent("""\
1135 unformatted_code,
1140 unformatted_code = textwrap.dedent("""\
1155 unformatted_code,
1160 unformatted_code = """\
1178 unformatted_code,
1183 unformatted_code = """\
1202 unformatted_code,
1207 unformatted_code = """\
1230 unformatted_code,
1235 unformatted_code = """\
1258 unformatted_code,
1263 unformatted_code = textwrap.dedent("""\
1282 unformatted_code,
1287 unformatted_code = textwrap.dedent("""\
1308 unformatted_code,
1313 unformatted_code = textwrap.dedent("""\
1344 unformatted_code,
1350 unformatted_code = 'print("中文")\n'
1353 unformatted_code,
1375 def _Check(self, unformatted_code, expected_formatted_code): argument
1377 unformatted_code, style_config=style.SetGlobalStyle(self._OwnStyle()))
1381 unformatted_code = textwrap.dedent("""\
1389 self._Check(unformatted_code, expected_formatted_code)