| OLD | NEW |
| 1 #!/usr/bin/python | 1 #!/usr/bin/python |
| 2 # | 2 # |
| 3 # Copyright (c) 2012 The Native Client Authors. All rights reserved. | 3 # Copyright (c) 2012 The Native Client Authors. All rights reserved. |
| 4 # Use of this source code is governed by a BSD-style license that can be | 4 # Use of this source code is governed by a BSD-style license that can be |
| 5 # found in the LICENSE file. | 5 # found in the LICENSE file. |
| 6 # | 6 # |
| 7 | 7 |
| 8 """ | 8 """ |
| 9 Responsible for generating the testing decoders based on | 9 Responsible for generating the testing decoders based on |
| 10 parsed table representations. | 10 parsed table representations. |
| (...skipping 627 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 638 out.write(TESTER_CLASS % values) | 638 out.write(TESTER_CLASS % values) |
| 639 | 639 |
| 640 def _generate_test_patterns(decoder, values, out): | 640 def _generate_test_patterns(decoder, values, out): |
| 641 for d in decoder.decoders(): | 641 for d in decoder.decoders(): |
| 642 if d.pattern: | 642 if d.pattern: |
| 643 values['decoder'] = d.name | 643 values['decoder'] = d.name |
| 644 values['rule'] = d.rule if d.rule else '' | 644 values['rule'] = d.rule if d.rule else '' |
| 645 values['constraints'] = d.constraints if d.constraints else '' | 645 values['constraints'] = d.constraints if d.constraints else '' |
| 646 values['pattern'] = d.pattern | 646 values['pattern'] = d.pattern |
| 647 out.write(TEST_FUNCTION % values) | 647 out.write(TEST_FUNCTION % values) |
| OLD | NEW |