@@ -78,54 +78,13 @@ ClassMethod PyStartWithScope(pCoverageClasses As %List) [ Language = python ]
78
78
curId = 1
79
79
tGlob [class _name , curId ] = line _no
80
80
tGlob [class _name ] = curId +1
81
- #; iris.execute('set ^TestCovera3FF5.PyMonitorReC80BD($i(^TestCovera3FF5.PyMonitorReC80BD)) = $listbuild("", ^IRIS.TEMP.TestCoveragePY(1), ^IRIS.TEMP.TestCoveragePY(2),^IRIS.TEMP.TestCoveragePY(3) )')
82
-
83
- #; new_line = iris.cls("TestCoverage.Data.PyMonitorResults")._New()
84
- #; new_line.ClassName = class_name
85
- #; new_line.FunctionName = func_name
86
- #; new_line.LineNumber = line_no
87
- #; new_line._Save()
88
-
89
- #; stmt = iris.sql.prepare("INSERT INTO TestCoverage_Data.PyMonitorResults (ClassName, FunctionName, LineNumber) VALUES (?, ?, ?)")
90
- #; try:
91
- #; rs = stmt.execute(class_name, func_name, line_no)
92
- #; except Exception as ex:
93
- #; print(ex.sqlcode, ex.message)
94
-
95
- # iris .cls (" TestCoverage.Utils.LineByLineMonitor" ).DoNothing ()
96
- # iris .cls (" TestCoverage.Utils.LineByLineMonitor" ).SavePyLine (line _no , func _name , class _name )
97
- #; glob[0] = "we make it back"
98
81
return my _tracer
99
82
settrace (my _tracer )
100
83
}
101
84
102
85
ClassMethod PyClearCounters ()
103
86
{
104
87
Kill ^IRIS .TEMP .TestCoveragePY
105
- #; &sql(
106
- #; delete from TestCoverage_Data.PyMonitorResults
107
- #; )
108
- #; If (SQLCODE < 0) {
109
- #; Throw ##class(%Exception.SQL).CreateFromSQLCODE(SQLCODE,%msg)
110
- #; }
111
- }
112
-
113
- ClassMethod DoNothing ()
114
- {
115
- set x = 1
116
- }
117
-
118
- ClassMethod SavePyLine (LineNumber As %Integer , FunctionName As %String , ClassName As %String )
119
- {
120
- #; &sql(
121
- #; INSERT INTO TestCoverage_Data.PyMonitorResults
122
- #; (ClassName, FunctionName, LineNumber)
123
- #; VALUES (:ClassName, :FunctionName, :LineNumber)
124
- #; )
125
-
126
- #; If (SQLCODE < 0) {
127
- #; Throw ##class(%Exception.SQL).CreateFromSQLCODE(SQLCODE,%msg)
128
- #; }
129
88
}
130
89
131
90
ClassMethod PyStop () [ Language = python ]
0 commit comments