Skip to content

Commit 040e56a

Browse files
committed
Cleaned up code with the old method of storing monitor results in PyMonitorResults
1 parent bcd58fa commit 040e56a

File tree

2 files changed

+0
-103
lines changed

2 files changed

+0
-103
lines changed

cls/TestCoverage/Data/PyMonitorResults.cls

Lines changed: 0 additions & 62 deletions
This file was deleted.

cls/TestCoverage/Utils/LineByLineMonitor.cls

Lines changed: 0 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -78,54 +78,13 @@ ClassMethod PyStartWithScope(pCoverageClasses As %List) [ Language = python ]
7878
curId = 1
7979
tGlob[class_name, curId] = line_no
8080
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"
9881
return my_tracer
9982
settrace(my_tracer)
10083
}
10184

10285
ClassMethod PyClearCounters()
10386
{
10487
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-
#; }
12988
}
13089

13190
ClassMethod PyStop() [ Language = python ]

0 commit comments

Comments
 (0)