| Conditions | 3 |
| Total Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | #!/usr/bin/env python |
||
| 7 | def main(): |
||
| 8 | processor = Processor() |
||
| 9 | try: |
||
| 10 | processor.import_string("hello.fidl", """
|
||
| 11 | package Example |
||
| 12 | interface Interface {
|
||
| 13 | method Hello {}
|
||
| 14 | } |
||
| 15 | """) |
||
| 16 | assert processor.packages["Example"].interfaces["Interface"].\ |
||
| 17 | methods["Hello"].name == "Hello" |
||
| 18 | except (LexerException, ParserException, ProcessorException) as e: |
||
| 19 | print("ERROR: {}".format(e))
|
||
| 20 | |||
| 24 |