ยปCore Development>Code coverage>Mac/Modules/ibcarbon/IBCarbonscan.py

Python code coverage for Mac/Modules/ibcarbon/IBCarbonscan.py

#countcontent
1n/a# IBCarbonscan.py
2n/a
3n/aimport sys
4n/a
5n/afrom bgenlocations import TOOLBOXDIR, BGENDIR
6n/asys.path.append(BGENDIR)
7n/a
8n/afrom scantools import Scanner_OSX
9n/a
10n/adef main():
11n/a print "---Scanning IBCarbonRuntime.h---"
12n/a input = ["IBCarbonRuntime.h"]
13n/a output = "IBCarbongen.py"
14n/a defsoutput = TOOLBOXDIR + "IBCarbonRuntime.py"
15n/a scanner = IBCarbon_Scanner(input, output, defsoutput)
16n/a scanner.scan()
17n/a scanner.close()
18n/a print "=== Testing definitions output code ==="
19n/a execfile(defsoutput, {}, {})
20n/a print "--done scanning, importing--"
21n/a import IBCarbonsupport
22n/a print "done"
23n/a
24n/aclass IBCarbon_Scanner(Scanner_OSX):
25n/a
26n/a def destination(self, type, name, arglist):
27n/a classname = "IBCarbonFunction"
28n/a listname = "functions"
29n/a if arglist:
30n/a t, n, m = arglist[0]
31n/a if t == "IBNibRef" and m == "InMode":
32n/a classname = "IBCarbonMethod"
33n/a listname = "methods"
34n/a return classname, listname
35n/a
36n/a def makeblacklistnames(self):
37n/a return [
38n/a "DisposeNibReference", # taken care of by destructor
39n/a "CreateNibReferenceWithCFBundle", ## need to wrap CFBundle.h properly first
40n/a ]
41n/a
42n/a def makerepairinstructions(self):
43n/a return []
44n/a
45n/a
46n/aif __name__ == "__main__":
47n/a main()