Coverage for C:\leo.repo\leo-editor\leo\plugins\writers\test.py: 62%

Shortcuts on this page

r m x   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

16 statements  

1#@+leo-ver=5-thin 

2#@+node:ekr.20140729162415.18090: * @file writers/test.py 

3'''The @auto writer for .xyzzy files and @auto-test nodes.''' 

4import leo.core.leoGlobals as g 

5import leo.plugins.writers.basewriter as basewriter 

6trace = False and not g.unitTesting 

7tag = '(TestWriter)' 

8if trace: 

9 print('%s importing writers/test.py' % ('='*20)) 

10class TestWriter(basewriter.BaseWriter): 

11 def __init__(self,c): 

12 g.trace(tag) 

13 basewriter.BaseWriter.__init__(self,c) 

14 assert self.c 

15 def write (self,root): 

16 g.trace(tag,root.h) 

17 return True 

18 

19writer_dict = { 

20 '@auto': ['@auto-test',], 

21 'class': TestWriter, 

22 'extensions': ['.xyzzy',], 

23} 

24#@-leo