-
Notifications
You must be signed in to change notification settings - Fork 14
/
20170707_MASH_1.5_GT.M_INSTALL_NO_VISTA.txt
1875 lines (1608 loc) · 85.5 KB
/
20170707_MASH_1.5_GT.M_INSTALL_NO_VISTA.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
The following screen capture shows the use of the M-Unit program in a GT.M
system (version V6.2-000) with VistA not installed. The routines were copied
into the GT.M system, the percent ('%') character at the start of the names
changed to an underscore ('_') character, and the routines converted to the
unix line terminators with the dos2unix command. Following this, the unit
tests for the package and coverage analysis were performed twice. In GT.M when
a routine is first run, any apparent problems are identified and listed as the
routine is running. These are the result of sections of code for Intersystems
Cache being present which is not attempted to be run in a GT.M system. The
second capture which does not include this excess material is presented here.
The commands used are:
D ^%utt1 - this runs the unit tests in non-verbose mode, showing periods
for each passing test. Note that due to simply showing a '.'
for successful tests instead of listing every test run, the
non-verbose listing is much more compact and highlights any
problems that are encountered.
D EN^%ut("%utt1",3) - runs unit tests with VERBOSITY set to 3, this
causes each test to be listed with its result and at level
3 it lists execution time for each test in fractional
milliseconds [In this case, however the GT.M version of
6.2 does not provide the fractional milliseconds]
D ^%uttcovr - runs detailed coverage analysis for the unit test routines
with level set to 3, which lists coverage by routine,
coverage by tag within routines, and within each routine lists
by tag lines that were NOT covered. The routine %uttcovr runs
the tests and routines in multiple ways to cover all of the
different ways that the tests can be run and to cover as well
as possible all of the paths in the code being tested.
Since there was no VistA environment, code related to providing support for
commands based on Options or GUI running of tests in the routine %ut is not
covered and decreases the coverage of this one routine.
Script started on Fri 07 Jul 2017 05:27:16 PM UTC
vagrant@vagrant-ubuntu-precise-64:/home/osehra/jli$ mumps -dir
OSEHRA>S DUZ=1 D ^%utt1
Running tests in NON-VERBOSE mode
For Verbose mode use DO VERBOSE^%utt1(ARG) where ARG is an integer 1 to 3
ENTER RETURN TO CONTINUE: ....
T5^%utt1 - Error count check - This is an intentional failure
.
T5^%utt1 - Error count check - Intentionally throwing a failure
.................
BADCHKEQ^%utt5 - CHKEQ should fail on unequal value - <4> vs <3> - SET UNEQUAL
ON PURPOSE - SHOULD FAIL
BADCHKTF^%utt5 - CHKTF should fail on false value - SET FALSE (0) ON PURPOSE -
SHOULD FAIL
BADERROR^%utt5 - throws an error on purpose - Error: 150372778,BADERROR+6^%utt5
,%GTM-E-EXPR, Expression expected but not found
CALLFAIL^%utt5 - called FAIL to test it - Called FAIL to test it
LEAKSBAD^%utt5 - check leaks with leak - LEAKSBAD TEST - X NOT SPECIFIED VARIABL
E LEAK: X
NVLDARG1^%utt5 - check invalid arg in CHKEQ - NO VALUES INPUT TO CHKEQ^%ut - no
evaluation possible
................................................................................
Ran 6 Routines, 37 Entry Tags
Checked 109 tests, with 7 failures and encountered 1 error.
OSEHRA>
OSEHRA>
OSEHRA>
OSEHRA>d ^%uttcovr
Loading routines to test coverage...
%ut %ut1 %utcover %utt1 %utt2 %utt3 %utt4 %utt5 %utt6 %utt7 %uttcovr
------------------- RUNNING %utt1 -------------------
....
T5^%utt1 - Error count check - This is an intentional failure
.
T5^%utt1 - Error count check - Intentionally throwing a failure
.................
BADCHKEQ^%utt5 - CHKEQ should fail on unequal value - <4> vs <3> - SET UNEQUAL
ON PURPOSE - SHOULD FAIL
BADCHKTF^%utt5 - CHKTF should fail on false value - SET FALSE (0) ON PURPOSE -
SHOULD FAIL
BADERROR^%utt5 - throws an error on purpose - Error: 150372778,BADERROR+6^%utt5
,%GTM-E-EXPR, Expression expected but not found
CALLFAIL^%utt5 - called FAIL to test it - Called FAIL to test it
LEAKSBAD^%utt5 - check leaks with leak - LEAKSBAD TEST - X NOT SPECIFIED VARIABL
E LEAK: X
NVLDARG1^%utt5 - check invalid arg in CHKEQ - NO VALUES INPUT TO CHKEQ^%ut - no
evaluation possible
................................................................................
Ran 6 Routines, 37 Entry Tags
Checked 109 tests, with 7 failures and encountered 1 error.
Coventry ROU=%utt1
------------------- RUNNING %uttcovr -------------------
......................................................................
Ran 1 Routine, 9 Entry Tags
Checked 70 tests, with 0 failures and encountered 0 errors.
Coventry ROU=%uttcovr
------------------- RUNNING ENTRY^%uttcovr -------------------
LEAKSBAD TEST - X NOT SPECIFIED VARIABLE LEAK: X
xxxxxxxxxxxxxxxxxxxx GOING TO COV^%ut FOR %utt5 at 3
Loading routines to test coverage...
%ut1 ....
BADCHKEQ^%utt5 - CHKEQ should fail on unequal value - <4> vs <3> - SET UNEQUAL
ON PURPOSE - SHOULD FAIL
BADCHKTF^%utt5 - CHKTF should fail on false value - SET FALSE (0) ON PURPOSE -
SHOULD FAIL
BADERROR^%utt5 - throws an error on purpose - Error: 150372778,BADERROR+6^%utt5
,%GTM-E-EXPR, Expression expected but not found
CALLFAIL^%utt5 - called FAIL to test it - Called FAIL to test it
LEAKSBAD^%utt5 - check leaks with leak - LEAKSBAD TEST - X NOT SPECIFIED VARIABL
E LEAK: X
NVLDARG1^%utt5 - check invalid arg in CHKEQ - NO VALUES INPUT TO CHKEQ^%ut - no
evaluation possible
.
Ran 1 Routine, 11 Entry Tags
Checked 10 tests, with 5 failures and encountered 1 error.
xxxxxxxxxxxxxxxxxxxx GOING TO COV^%ut FOR %utt5 at -1
Loading routines to test coverage...
%ut1 ....
BADCHKEQ^%utt5 - CHKEQ should fail on unequal value - <4> vs <3> - SET UNEQUAL
ON PURPOSE - SHOULD FAIL
BADCHKTF^%utt5 - CHKTF should fail on false value - SET FALSE (0) ON PURPOSE -
SHOULD FAIL
BADERROR^%utt5 - throws an error on purpose - Error: 150372778,BADERROR+6^%utt5
,%GTM-E-EXPR, Expression expected but not found
CALLFAIL^%utt5 - called FAIL to test it - Called FAIL to test it
LEAKSBAD^%utt5 - check leaks with leak - LEAKSBAD TEST - X NOT SPECIFIED VARIABL
E LEAK: X
NVLDARG1^%utt5 - check invalid arg in CHKEQ - NO VALUES INPUT TO CHKEQ^%ut - no
evaluation possible
.
Ran 1 Routine, 11 Entry Tags
Checked 10 tests, with 5 failures and encountered 1 error.
xxxxxxxxxxxxxxxxxxxx GOING TO MULTAPIS for %utt4 and %ut
------------------- RUNNING ^%ut -------------------
NOW RUNNING UNIT TESTS FOR %uttcovr
......................................................................
Ran 1 Routine, 9 Entry Tags
Checked 70 tests, with 0 failures and encountered 0 errors.
NOW RUNNING UNIT TESTS FOR %utt6
.........
Ran 1 Routine, 5 Entry Tags
Checked 9 tests, with 0 failures and encountered 0 errors.
Coventry ROU=^%ut
------------------- RUNNING ^%utt4 -------------------
----------------------------------- %utt4 -----------------------------------
MAIN - - Test coverage calculations------------------------------------ [OK]
Ran 1 Routine, 1 Entry Tag
Checked 0 test, with 0 failures and encountered 0 errors.
Coventry ROU=^%utt4
------------ SUMMARY ------------
Ran 2 Routines, 6 Entry Tags
Checked 9 tests, with 0 failures and encountered 0 errors.
xxxxxxxxxxxxxxxxxxxx GOING TO COVERAGE for %utt4 and %ut at 3
Loading routines to test coverage...
%ut %ut1 %utcover %utt1 %utt2 %utt3 %utt4 %utt5 %utt6 %utt7 %uttcovr
------------------- RUNNING ^%ut -------------------
NOW RUNNING UNIT TESTS FOR %uttcovr
......................................................................
Ran 1 Routine, 9 Entry Tags
Checked 70 tests, with 0 failures and encountered 0 errors.
NOW RUNNING UNIT TESTS FOR %utt6
.........
Ran 1 Routine, 5 Entry Tags
Checked 9 tests, with 0 failures and encountered 0 errors.
Coventry ROU=^%ut
------------------- RUNNING ^%utt4 -------------------
----------------------------------- %utt4 -----------------------------------
MAIN - - Test coverage calculations------------------------------------ [OK]
Ran 1 Routine, 1 Entry Tag
Checked 0 test, with 0 failures and encountered 0 errors.
Coventry ROU=^%utt4
------------ SUMMARY ------------
Ran 2 Routines, 6 Entry Tags
Checked 9 tests, with 0 failures and encountered 0 errors.
Routine %ut (59.59%) 174 out of 292 lines covered
- Detailed Breakdown
Tag %ut^%ut (100.00%) 2 out of 2 lines covered
Tag CHKEQ^%ut (100.00%) 18 out of 18 lines covered
Tag CHKLEAKS^%ut (100.00%) 2 out of 2 lines covered
Tag CHKTF^%ut (100.00%) 15 out of 15 lines covered
Tag COV^%ut (100.00%) 2 out of 2 lines covered
Tag COVERAGE^%ut (100.00%) 2 out of 2 lines covered
Tag DOSET^%ut (0.00%) 0 out of 6 lines covered
the following is a list of the lines **NOT** covered
DOSET+4 N %utROU,%utLIST
DOSET+5 I '$D(%utVERB) S %utVERB=0
DOSET+6 S %utLIST=0
DOSET+7 D GETSET($G(IEN),.%utROU,.%utLIST)
DOSET+8 I %utLIST>0 N IEN,%ut D SETUT,EN1(.%utROU,%utLIST)
DOSET+9 Q
Tag EN^%ut (100.00%) 7 out of 7 lines covered
Tag EN1^%ut (94.12%) 64 out of 68 lines covered
the following is a list of the lines **NOT** covered
EN1+76 . . . I $$GETSYS()=0 S %utStart=$P($NOW(),",",2)
EN1+77 . . . I $$GETSYS()=47 N V S V=$$GTMVER(0),%utStart=$s(V>6.2:$ZH,1:
0)
EN1+88 . . . I $$GETSYS()=0 S %utEnd=$P($NOW(),",",2) S %utElapsed=(%utEn
d-%utStart)*1000,%utElapsed=%utElapsed_"ms"
EN1+89 . . . I $$GETSYS()=47 N V S V=$$GTMVER(0),%utEnd=$s(V>6.2:$ZH,1:0)
S %utElapsed=$$ZHDIF(%utStart,%utEnd)
Tag ERROR^%ut (55.56%) 5 out of 9 lines covered
the following is a list of the lines **NOT** covered
ERROR+7 . S %ut("CNT")=%ut("CNT")+1
ERROR+8 . S %utERR=%utERR+1
ERROR+9 . S @%ut("RSLT")@(%ut("CNT"))=%ut("LOC")_XTGUISEP_"ERROR"_XTGUISE
P_$S($$GETSYS()=47:$ZS,1:$ZE)
ERROR+10 . Q
Tag ERROR1^%ut (100.00%) 9 out of 9 lines covered
Tag FAIL^%ut (100.00%) 2 out of 2 lines covered
Tag GETLIST^%ut (0.00%) 0 out of 12 lines covered
the following is a list of the lines **NOT** covered
GETLIST+1 N I,%utROUL,%utROUN,%ut,XTCOMNT,XTVALUE,%utCNT
GETLIST+2 S XTVALUE=$NA(^TMP("GUI-MUNIT",$J)) K @XTVALUE
GETLIST+3 S %utCNT=0,XTCOMNT=""
GETLIST+4 D GETTREE^%ut1(.%utROU,%utLIST)
GETLIST+5 F I=1:1 Q:'$D(%utROU(I)) S %utROUL(%utROU(I))=""
GETLIST+6 S %utROUN="" F S %utROUN=$O(%utROUL(%utROUN)) Q:%utROUN="" D
LOAD(%utROUN,.%utCNT,XTVALUE,XTCOMNT,.%utROUL)
GETLIST+8 S I="" F S I=$O(@XTVALUE@(I)) Q:I="" S %utLINE=^(I) I $P(%utL
INE,U,2)="@" S @XTVALUE@(I)=$P(%utLINE,U)_U_$P(%utLINE,U,3,99)
GETLIST+9 M @%utRSLT=@XTVALUE
GETLIST+10 K @%utRSLT@("SHUTDOWN")
GETLIST+11 K @%utRSLT@("STARTUP")
GETLIST+12 S @XTVALUE@("LASTROU")=""
GETLIST+13 Q
Tag GETSET^%ut (0.00%) 0 out of 4 lines covered
the following is a list of the lines **NOT** covered
GETSET+1 N IENS,%utROOT
GETSET+3 S IENS=IEN_"," D GETS^DIQ(17.9001,IENS,"1*","","%utROOT")
GETSET+4 S %utLIST=0,IENS="" F S IENS=$O(%utROOT(17.90011,IENS)) Q:IENS=
"" S %utLIST=%utLIST+1,%utROU(%utLIST)=%utROOT(17.90011,IENS,.01)
GETSET+5 Q
Tag GETSYS^%ut (100.00%) 3 out of 3 lines covered
Tag GETUTVAL^%ut (100.00%) 5 out of 5 lines covered
Tag GTMVER^%ut (100.00%) 1 out of 1 lines covered
Tag GUILOAD^%ut (0.00%) 0 out of 8 lines covered
the following is a list of the lines **NOT** covered
GUILOAD+1 N %utROU,%ut
GUILOAD+2 D SETUT
GUILOAD+3 S %ut("RSLT")=$NA(^TMP("MUNIT-%utRSLT",$J)) K @%ut("RSLT")
GUILOAD+4 S %utROU(1)=%utROUN
GUILOAD+5 D GETLIST(.%utROU,1,%ut("RSLT"))
GUILOAD+6 S @%ut("RSLT")@(1)=(@%ut("RSLT")@(1))_"^1"
GUILOAD+7 S %utRSLT=%ut("RSLT")
GUILOAD+8 Q
Tag GUINEXT^%ut (0.00%) 0 out of 43 lines covered
the following is a list of the lines **NOT** covered
GUINEXT+5 N %utETRY,%utROUT,XTOLROU,XTVALUE,%utERR,%utGUI
GUINEXT+6 N %ut
GUINEXT+7 I $G(XTGUISEP)="" S XTGUISEP="^"
GUINEXT+8 D SETUT
GUINEXT+9 S %ut("LOC")=%utLOC
GUINEXT+10 S %ut("CURR")=0,%ut("ECNT")=0,%ut("FAIL")=0,%ut("CHK")=0,%ut("
NENT")=0,%ut("ERRN")=0
GUINEXT+11 S XTVALUE=$NA(^TMP("GUI-MUNIT",$J))
GUINEXT+12 S %ut("RSLT")=$NA(^TMP("GUINEXT",$J)) K @%ut("RSLT")
GUINEXT+13 S %utRSLT=%ut("RSLT")
GUINEXT+14 S %utETRY=$P(%utLOC,U),%utROUT=$P(%utLOC,U,2),XTOLROU=$G(@XTVA
LUE@("LASTROU"))
GUINEXT+15 S %utGUI=1
GUINEXT+16 S %ut("CHK")=0,%ut("CNT")=1,%utERR=0
GUINEXT+17 D I %utROUT="" S @%utRSLT@(1)="" Q ; 141018 JLI - Have to le
ave XTVALUE intact, in case they simply run again for STARTUP, etc.
GUINEXT+18 . I XTOLROU="",$D(@XTVALUE@("STARTUP")) D
GUINEXT+19 . . S %ut("LOC")=@XTVALUE@("STARTUP")
GUINEXT+20 . . N $ETRAP S $ETRAP="D ERROR^%ut"
GUINEXT+21 . . D @(@XTVALUE@("STARTUP"))
GUINEXT+22 . . Q
GUINEXT+23 . S @XTVALUE@("LASTROU")=%utROUT I %utROUT'="",$T(@("SETUP^"_%
utROUT))'="" D
GUINEXT+24 . . S %ut("LOC")="SETUP^"_%utROUT
GUINEXT+25 . . N $ETRAP S $ETRAP="D ERROR^%ut"
GUINEXT+26 . . D @("SETUP^"_%utROUT)
GUINEXT+27 . . Q
GUINEXT+28 . I %utROUT="",$D(@XTVALUE@("SHUTDOWN")) D
GUINEXT+29 . . S %ut("LOC")=@XTVALUE@("SHUTDOWN")
GUINEXT+30 . . N $ETRAP S $ETRAP="D ERROR^%ut"
GUINEXT+31 . . D @(@XTVALUE@("SHUTDOWN"))
GUINEXT+32 . . Q
GUINEXT+33 . Q
GUINEXT+34 S %ut("LOC")=%utLOC
GUINEXT+35 S %ut("CHK")=0,%ut("CNT")=1,%utERR=0
GUINEXT+36 D ; to limit range of error trap so we continue through other
tests
GUINEXT+37 . N $ETRAP S $ETRAP="D ERROR^%ut"
GUINEXT+38 . D @%ut("LOC")
GUINEXT+39 . Q
GUINEXT+40 I $T(@("TEARDOWN^"_%utROUT))'="" D
GUINEXT+41 . S %ut("LOC")="TEARDOWN^"_%utROUT
GUINEXT+42 . N $ETRAP S $ETRAP="D ERROR^%ut"
GUINEXT+43 . D @("TEARDOWN^"_%utROUT)
GUINEXT+44 . Q
GUINEXT+45 S @%ut("RSLT")@(1)=%ut("CHK")_XTGUISEP_(%ut("CNT")-1-%utERR)_X
TGUISEP_%utERR
GUINEXT+46 K ^TMP("%ut",$J,"UTVALS")
GUINEXT+47 Q
Tag GUISET^%ut (0.00%) 0 out of 8 lines covered
the following is a list of the lines **NOT** covered
GUISET+1 N %utROU,%utLIST,%ut
GUISET+2 D SETUT
GUISET+3 S %ut("RSLT")=$NA(^TMP("MUNIT-%utRSLT",$J)) K @%ut("RSLT")
GUISET+4 D GETSET(XTSET,.%utROU,.%utLIST)
GUISET+5 D GETLIST(.%utROU,%utLIST,%ut("RSLT"))
GUISET+6 S @%ut("RSLT")@(1)=(@%ut("RSLT")@(1))_"^1" ; 110719 mark as new
version
GUISET+7 S %utRSLT=%ut("RSLT")
GUISET+8 Q
Tag ISUTEST^%ut (100.00%) 1 out of 1 lines covered
Tag LOAD^%ut (0.00%) 0 out of 10 lines covered
the following is a list of the lines **NOT** covered
LOAD+1 I $T(@("^"_%utROUN))="" S %utNCNT=%utNCNT+1,@XTVALUE@(%utNCNT)=%ut
ROUN_"^^*** ERROR - ROUTINE NAME NOT FOUND" Q
LOAD+2 S %utNCNT=%utNCNT+1,@XTVALUE@(%utNCNT)=%utROUN_U_U_XTCOMNT
LOAD+3 N %utI,XTX1,XTX2,LINE,LIST,I
LOAD+4 I $T(@("STARTUP^"_%utROUN))'="",'$D(@XTVALUE@("STARTUP")) S @XTVAL
UE@("STARTUP")="STARTUP^"_%utROUN
LOAD+5 I $T(@("SHUTDOWN^"_%utROUN))'="",'$D(@XTVALUE@("SHUTDOWN")) S @XTV
ALUE@("SHUTDOWN")="SHUTDOWN^"_%utROUN
LOAD+6 D NEWSTYLE^%ut1(.LIST,%utROUN)
LOAD+7 F I=1:1:LIST S %utNCNT=%utNCNT+1,@XTVALUE@(%utNCNT)=%utROUN_U_LIST
(I)
LOAD+8 F %utI=1:1 S LINE=$T(@("XTENT+"_%utI_"^"_%utROUN)) S XTX1=$P(LINE,
";",3) Q:XTX1="" S XTX2=$P(LINE,";",4),%utNCNT=%utNCNT+1,@XTVALUE@(%utNCNT)=%ut
ROUN_U_XTX1_U_XTX2
LOAD+9 F %utI=1:1 S LINE=$T(@("XTROU+"_%utI_"^"_%utROUN)) S XTX1=$P(LINE,
";",3) Q:XTX1="" S XTCOMNT=$P(LINE,";",4) I '$D(%utROUL(XTX1)) S %utROUL(XTX1)=
"" D LOAD(XTX1,.%utNCNT,XTVALUE,XTCOMNT,.%utROUL)
LOAD+10 Q
Tag LSTUTVAL^%ut (100.00%) 4 out of 4 lines covered
Tag MULTAPIS^%ut (100.00%) 2 out of 2 lines covered
Tag PICKSET^%ut (100.00%) 3 out of 3 lines covered
Tag RUNSET^%ut (0.00%) 0 out of 9 lines covered
the following is a list of the lines **NOT** covered
RUNSET+1 N Y,%utROU,%utLIST,%utVERB
RUNSET+2 Q:$G(SETNAME)=""
RUNSET+3 S %utVERB=$G(VERBOSE,0)
RUNSET+4 S Y=+$$FIND1^DIC(17.9001,"","X",SETNAME) Q:Y'>0
RUNSET+5 D GETSET(Y,.%utROU,.%utLIST)
RUNSET+6 N Y,SETNAME,%ut
RUNSET+7 D SETUT
RUNSET+8 D EN1(.%utROU,%utLIST)
RUNSET+9 Q
Tag SETUT^%ut (100.00%) 6 out of 6 lines covered
Tag SUCCEED^%ut (100.00%) 6 out of 6 lines covered
Tag VERBOSE^%ut (100.00%) 11 out of 11 lines covered
Tag VERBOSE1^%ut (100.00%) 4 out of 4 lines covered
Tag ZHDIF^%ut (0.00%) 0 out of 10 lines covered
the following is a list of the lines **NOT** covered
ZHDIF+1 N SC0 S SC0=$P(%ZH0,",",2)
ZHDIF+2 N SC1 S SC1=$P(%ZH1,",",2)
ZHDIF+3 N DC0 S DC0=$P(%ZH0,",")*86400
ZHDIF+4 N DC1 S DC1=$P(%ZH1,",")*86400
ZHDIF+5 N MCS0 S MCS0=$P(%ZH0,",",3)/1000000
ZHDIF+6 N MCS1 S MCS1=$P(%ZH1,",",3)/1000000
ZHDIF+8 N T0 S T0=SC0+DC0+MCS0
ZHDIF+9 N T1 S T1=SC1+DC1+MCS1
ZHDIF+11 N %ZH2 S %ZH2=T1-T0*1000
ZHDIF+12 QUIT %ZH2
Routine %ut1 (81.82%) 234 out of 286 lines covered
- Detailed Breakdown
Tag %ut1^%ut1 (100.00%) 2 out of 2 lines covered
Tag ACTLINES^%ut1 (100.00%) 8 out of 8 lines covered
Tag CACHECOV^%ut1 (88.24%) 15 out of 17 lines covered
the following is a list of the lines **NOT** covered
CACHECOV+14 . . X "N %,%N S %N=0 X ""ZL @X F XCNP=XCNP+1:1 S %N=%N+1,%=$T
(+%N) Q:$L(%)=0 S @(DIF_XCNP_"""",0)"""")=%""" ; JLI see 160701 note in comment
s at top
CACHECOV+15 . . Q
Tag CHECKTAG^%ut1 (100.00%) 5 out of 5 lines covered
Tag CHEKTEST^%ut1 (100.00%) 17 out of 17 lines covered
Tag CHKTAGS^%ut1 (100.00%) 10 out of 10 lines covered
Tag COV^%ut1 (48.68%) 37 out of 76 lines covered
the following is a list of the lines **NOT** covered
COV+33 . N NMSP S NMSP=$G(NMSPS)
COV+34 . D:NMSP]"" S NMSP="" F S NMSP=$O(NMSPS(NMSP)) Q:NMSP="" D
COV+35 . . S NMSP1=NMSP I NMSP["*" S NMSP1=$P(NMSP,"*")
COV+36 . . I $D(^$R(NMSP1)) S RTNS(NMSP1)=""
COV+37 . . I NMSP["*" S RTN=NMSP1 F S RTN=$O(^$R(RTN)) Q:RTN'[NMSP1 S R
TNS(RTN)=""
COV+38 . . Q
COV+39 . Q
COV+50 . K ^TMP("%utCOVCOHORTSAV",$J)
COV+51 . M ^TMP("%utCOVCOHORTSAV",$J)=^TMP("%utCOVCOHORT",$J)
COV+52 . K ^TMP("%utCOVRESULT",$J)
COV+53 . S ^TMP("%utcovrunning",$J)=1,%utcovxx=1
COV+55 . I ($$GETSYS^%ut()=47) VIEW "TRACE":1:$NA(^TMP("%utCOVRESULT",$J)
) ; GT.M START PROFILING
COV+58 . . N NMSP,NMSPV S NMSP="",NMSPV="" F S NMSPV=$O(RTNS(NMSPV)) Q:N
MSPV="" S NMSP=NMSP_NMSPV_","
COV+59 . . S NMSP=$E(NMSP,1,$L(NMSP)-1)
COV+60 . . S STATUS=##class(%Monitor.System.LineByLine).Start($lb(NMSP),$
lb("RtnLine"),$lb($j))
COV+61 . . I +STATUS'=1 D DecomposeStatus^%apiOBJ(STATUS,.ERR,"-d") F I=1
:1:ERR W ERR(I),!
COV+62 . . I +STATUS'=1 K ERR S EXIT=1
COV+63 . . Q
COV+78 . I ($$GETSYS^%ut()=0) ; CACHE SPECIFIC
COV+79 . K %utcovxx,^TMP("%utcovrunning",$J)
COV+80 . Q
COV+83 . I ($$GETSYS^%ut()=0) D ; CACHE SPECIFIC CODE
COV+84 . . S COVERSAV=$NA(^TMP("%utCOVCOHORTSAV",$J)) K @COVERSAV
COV+85 . . S COVER=$NA(^TMP("%utCOVCOHORT",$J)) K @COVER
COV+86 . . D CACHECOV(COVERSAV,COVER)
COV+87 . . D TOTAGS(COVERSAV,0),TOTAGS(COVER,1)
COV+88 . . D ##class(%Monitor.System.LineByLine).Stop()
COV+89 . . Q
COV+90 . D COVCOV($NA(^TMP("%utCOVCOHORT",$J)),$NA(^TMP("%utCOVRESULT",$J
))) ; Venn diagram matching between globals
COV+92 . I VERBOSITY=-1 D
COV+93 . . K ^TMP("%utCOVREPORT",$J)
COV+94 . . D COVRPTGL^%utcover($NA(^TMP("%utCOVCOHORTSAV",$J)),$NA(^TMP("
%utCOVCOHORT",$J)),$NA(^TMP("%utCOVRESULT",$J)),$NA(^TMP("%utCOVREPORT",$J)))
COV+95 . . K ^TMP("%utCOVCOHORTSAV",$J),^TMP("%utCOVCOHORT",$J),^TMP("%ut
COVRESULT",$J) ; %utCOVREPORT contains the data for the user
COV+96 . . Q
COV+97 . E D
COV+98 . . D COVRPT($NA(^TMP("%utCOVCOHORTSAV",$J)),$NA(^TMP("%utCOVCOHOR
T",$J)),$NA(^TMP("%utCOVRESULT",$J)),VERBOSITY)
COV+99 . . K ^TMP("%utCOVCOHORTSAV",$J),^TMP("%utCOVCOHORT",$J),^TMP("%ut
COVRESULT",$J),^TMP("%utCOVREPORT",$J)
COV+100 . . Q
COV+101 . Q
Tag COVCOV^%ut1 (100.00%) 9 out of 9 lines covered
Tag COVRPT^%ut1 (100.00%) 5 out of 5 lines covered
Tag COVRPTLS^%ut1 (100.00%) 31 out of 31 lines covered
Tag FAIL^%ut1 (100.00%) 12 out of 12 lines covered
Tag GETTAG^%ut1 (100.00%) 4 out of 4 lines covered
Tag GETTREE^%ut1 (100.00%) 7 out of 7 lines covered
Tag GETVALS^%ut1 (0.00%) 0 out of 11 lines covered
the following is a list of the lines **NOT** covered
GETVALS+2 N LINE,MORE,ROUNAME,RSET,VAL,X
GETVALS+4 S RSET=##class(%ResultSet).%New("%Monitor.System.LineByLine:Res
ult")
GETVALS+5 S ROUNAME=##class(%Monitor.System.LineByLine).GetRoutineName(RO
UNUM)
GETVALS+6 S LINE=RSET.Execute(ROUNAME)
GETVALS+7 F LINE=1:1 S MORE=RSET.Next() Q:'MORE D
GETVALS+8 . S X=RSET.GetData(1)
GETVALS+9 . S VAL=$LI(X,MTRICNUM)
GETVALS+10 . S @GLOB@(ROUNAME,LINE,"C")=+VAL ; values are 0 if not seen,
otherwises positive number
GETVALS+11 . Q
GETVALS+12 D RSET.Close()
GETVALS+13 Q
Tag ISUTEST^%ut1 (100.00%) 1 out of 1 lines covered
Tag LINEDATA^%ut1 (100.00%) 9 out of 9 lines covered
Tag NEWSTYLE^%ut1 (100.00%) 4 out of 4 lines covered
Tag NVLDARG^%ut1 (100.00%) 11 out of 11 lines covered
Tag RESETIO^%ut1 (100.00%) 2 out of 2 lines covered
Tag RTNANAL^%ut1 (100.00%) 29 out of 29 lines covered
Tag SETIO^%ut1 (100.00%) 2 out of 2 lines covered
Tag TOTAGS^%ut1 (100.00%) 13 out of 13 lines covered
Tag UP^%ut1 (100.00%) 1 out of 1 lines covered
Routine %utcover (100.00%) 108 out of 108 lines covered
- Detailed Breakdown
Tag %utcover^%utcover (100.00%) 2 out of 2 lines covered
Tag CHKLEAKS^%utcover (100.00%) 13 out of 13 lines covered
Tag COVENTRY^%utcover (100.00%) 15 out of 15 lines covered
Tag COVERAGE^%utcover (100.00%) 14 out of 14 lines covered
Tag COVRPTGL^%utcover (100.00%) 14 out of 14 lines covered
Tag LIST^%utcover (100.00%) 38 out of 38 lines covered
Tag MULTAPIS^%utcover (100.00%) 5 out of 5 lines covered
Tag SETROUS^%utcover (100.00%) 4 out of 4 lines covered
Tag TRIMDATA^%utcover (100.00%) 3 out of 3 lines covered
Routine %ut (59.59%) 174 out of 292 lines covered
- Summary
Tag %ut^%ut (100.00%) 2 out of 2 lines covered
Tag CHKEQ^%ut (100.00%) 18 out of 18 lines covered
Tag CHKLEAKS^%ut (100.00%) 2 out of 2 lines covered
Tag CHKTF^%ut (100.00%) 15 out of 15 lines covered
Tag COV^%ut (100.00%) 2 out of 2 lines covered
Tag COVERAGE^%ut (100.00%) 2 out of 2 lines covered
Tag DOSET^%ut (0.00%) 0 out of 6 lines covered
Tag EN^%ut (100.00%) 7 out of 7 lines covered
Tag EN1^%ut (94.12%) 64 out of 68 lines covered
Tag ERROR^%ut (55.56%) 5 out of 9 lines covered
Tag ERROR1^%ut (100.00%) 9 out of 9 lines covered
Tag FAIL^%ut (100.00%) 2 out of 2 lines covered
Tag GETLIST^%ut (0.00%) 0 out of 12 lines covered
Tag GETSET^%ut (0.00%) 0 out of 4 lines covered
Tag GETSYS^%ut (100.00%) 3 out of 3 lines covered
Tag GETUTVAL^%ut (100.00%) 5 out of 5 lines covered
Tag GTMVER^%ut (100.00%) 1 out of 1 lines covered
Tag GUILOAD^%ut (0.00%) 0 out of 8 lines covered
Tag GUINEXT^%ut (0.00%) 0 out of 43 lines covered
Tag GUISET^%ut (0.00%) 0 out of 8 lines covered
Tag ISUTEST^%ut (100.00%) 1 out of 1 lines covered
Tag LOAD^%ut (0.00%) 0 out of 10 lines covered
Tag LSTUTVAL^%ut (100.00%) 4 out of 4 lines covered
Tag MULTAPIS^%ut (100.00%) 2 out of 2 lines covered
Tag PICKSET^%ut (100.00%) 3 out of 3 lines covered
Tag RUNSET^%ut (0.00%) 0 out of 9 lines covered
Tag SETUT^%ut (100.00%) 6 out of 6 lines covered
Tag SUCCEED^%ut (100.00%) 6 out of 6 lines covered
Tag VERBOSE^%ut (100.00%) 11 out of 11 lines covered
Tag VERBOSE1^%ut (100.00%) 4 out of 4 lines covered
Tag ZHDIF^%ut (0.00%) 0 out of 10 lines covered
Routine %ut1 (81.82%) 234 out of 286 lines covered
- Summary
Tag %ut1^%ut1 (100.00%) 2 out of 2 lines covered
Tag ACTLINES^%ut1 (100.00%) 8 out of 8 lines covered
Tag CACHECOV^%ut1 (88.24%) 15 out of 17 lines covered
Tag CHECKTAG^%ut1 (100.00%) 5 out of 5 lines covered
Tag CHEKTEST^%ut1 (100.00%) 17 out of 17 lines covered
Tag CHKTAGS^%ut1 (100.00%) 10 out of 10 lines covered
Tag COV^%ut1 (48.68%) 37 out of 76 lines covered
Tag COVCOV^%ut1 (100.00%) 9 out of 9 lines covered
Tag COVRPT^%ut1 (100.00%) 5 out of 5 lines covered
Tag COVRPTLS^%ut1 (100.00%) 31 out of 31 lines covered
Tag FAIL^%ut1 (100.00%) 12 out of 12 lines covered
Tag GETTAG^%ut1 (100.00%) 4 out of 4 lines covered
Tag GETTREE^%ut1 (100.00%) 7 out of 7 lines covered
Tag GETVALS^%ut1 (0.00%) 0 out of 11 lines covered
Tag ISUTEST^%ut1 (100.00%) 1 out of 1 lines covered
Tag LINEDATA^%ut1 (100.00%) 9 out of 9 lines covered
Tag NEWSTYLE^%ut1 (100.00%) 4 out of 4 lines covered
Tag NVLDARG^%ut1 (100.00%) 11 out of 11 lines covered
Tag RESETIO^%ut1 (100.00%) 2 out of 2 lines covered
Tag RTNANAL^%ut1 (100.00%) 29 out of 29 lines covered
Tag SETIO^%ut1 (100.00%) 2 out of 2 lines covered
Tag TOTAGS^%ut1 (100.00%) 13 out of 13 lines covered
Tag UP^%ut1 (100.00%) 1 out of 1 lines covered
Routine %utcover (100.00%) 108 out of 108 lines covered
- Summary
Tag %utcover^%utcover (100.00%) 2 out of 2 lines covered
Tag CHKLEAKS^%utcover (100.00%) 13 out of 13 lines covered
Tag COVENTRY^%utcover (100.00%) 15 out of 15 lines covered
Tag COVERAGE^%utcover (100.00%) 14 out of 14 lines covered
Tag COVRPTGL^%utcover (100.00%) 14 out of 14 lines covered
Tag LIST^%utcover (100.00%) 38 out of 38 lines covered
Tag MULTAPIS^%utcover (100.00%) 5 out of 5 lines covered
Tag SETROUS^%utcover (100.00%) 4 out of 4 lines covered
Tag TRIMDATA^%utcover (100.00%) 3 out of 3 lines covered
Routine %ut (59.59%) 174 out of 292 lines covered
Routine %ut1 (81.82%) 234 out of 286 lines covered
Routine %utcover (100.00%) 108 out of 108 lines covered
Overall Analysis 516 out of 686 lines covered (75% coverage)
xxxxxxxxxxxxxxxxxxxx LISTING DATA VIA LIST
Routine %ut (59.59%) 174 out of 292 lines covered
- Detailed Breakdown
Tag %ut^%ut (100.00%) 2 out of 2 lines covered
Tag CHKEQ^%ut (100.00%) 18 out of 18 lines covered
Tag CHKLEAKS^%ut (100.00%) 2 out of 2 lines covered
Tag CHKTF^%ut (100.00%) 15 out of 15 lines covered
Tag COV^%ut (100.00%) 2 out of 2 lines covered
Tag COVERAGE^%ut (100.00%) 2 out of 2 lines covered
Tag DOSET^%ut (0.00%) 0 out of 6 lines covered
the following is a list of the lines **NOT** covered
DOSET+4 N %utROU,%utLIST
DOSET+5 I '$D(%utVERB) S %utVERB=0
DOSET+6 S %utLIST=0
DOSET+7 D GETSET($G(IEN),.%utROU,.%utLIST)
DOSET+8 I %utLIST>0 N IEN,%ut D SETUT,EN1(.%utROU,%utLIST)
DOSET+9 Q
Tag EN^%ut (100.00%) 7 out of 7 lines covered
Tag EN1^%ut (94.12%) 64 out of 68 lines covered
the following is a list of the lines **NOT** covered
EN1+76 . . . I $$GETSYS()=0 S %utStart=$P($NOW(),",",2)
EN1+77 . . . I $$GETSYS()=47 N V S V=$$GTMVER(0),%utStart=$s(V>6.2:$ZH,1:
0)
EN1+88 . . . I $$GETSYS()=0 S %utEnd=$P($NOW(),",",2) S %utElapsed=(%utEn
d-%utStart)*1000,%utElapsed=%utElapsed_"ms"
EN1+89 . . . I $$GETSYS()=47 N V S V=$$GTMVER(0),%utEnd=$s(V>6.2:$ZH,1:0)
S %utElapsed=$$ZHDIF(%utStart,%utEnd)
Tag ERROR^%ut (55.56%) 5 out of 9 lines covered
the following is a list of the lines **NOT** covered
ERROR+7 . S %ut("CNT")=%ut("CNT")+1
ERROR+8 . S %utERR=%utERR+1
ERROR+9 . S @%ut("RSLT")@(%ut("CNT"))=%ut("LOC")_XTGUISEP_"ERROR"_XTGUISE
P_$S($$GETSYS()=47:$ZS,1:$ZE)
ERROR+10 . Q
Tag ERROR1^%ut (100.00%) 9 out of 9 lines covered
Tag FAIL^%ut (100.00%) 2 out of 2 lines covered
Tag GETLIST^%ut (0.00%) 0 out of 12 lines covered
the following is a list of the lines **NOT** covered
GETLIST+1 N I,%utROUL,%utROUN,%ut,XTCOMNT,XTVALUE,%utCNT
GETLIST+2 S XTVALUE=$NA(^TMP("GUI-MUNIT",$J)) K @XTVALUE
GETLIST+3 S %utCNT=0,XTCOMNT=""
GETLIST+4 D GETTREE^%ut1(.%utROU,%utLIST)
GETLIST+5 F I=1:1 Q:'$D(%utROU(I)) S %utROUL(%utROU(I))=""
GETLIST+6 S %utROUN="" F S %utROUN=$O(%utROUL(%utROUN)) Q:%utROUN="" D
LOAD(%utROUN,.%utCNT,XTVALUE,XTCOMNT,.%utROUL)
GETLIST+8 S I="" F S I=$O(@XTVALUE@(I)) Q:I="" S %utLINE=^(I) I $P(%utL
INE,U,2)="@" S @XTVALUE@(I)=$P(%utLINE,U)_U_$P(%utLINE,U,3,99)
GETLIST+9 M @%utRSLT=@XTVALUE
GETLIST+10 K @%utRSLT@("SHUTDOWN")
GETLIST+11 K @%utRSLT@("STARTUP")
GETLIST+12 S @XTVALUE@("LASTROU")=""
GETLIST+13 Q
Tag GETSET^%ut (0.00%) 0 out of 4 lines covered
the following is a list of the lines **NOT** covered
GETSET+1 N IENS,%utROOT
GETSET+3 S IENS=IEN_"," D GETS^DIQ(17.9001,IENS,"1*","","%utROOT")
GETSET+4 S %utLIST=0,IENS="" F S IENS=$O(%utROOT(17.90011,IENS)) Q:IENS=
"" S %utLIST=%utLIST+1,%utROU(%utLIST)=%utROOT(17.90011,IENS,.01)
GETSET+5 Q
Tag GETSYS^%ut (100.00%) 3 out of 3 lines covered
Tag GETUTVAL^%ut (100.00%) 5 out of 5 lines covered
Tag GTMVER^%ut (100.00%) 1 out of 1 lines covered
Tag GUILOAD^%ut (0.00%) 0 out of 8 lines covered
the following is a list of the lines **NOT** covered
GUILOAD+1 N %utROU,%ut
GUILOAD+2 D SETUT
GUILOAD+3 S %ut("RSLT")=$NA(^TMP("MUNIT-%utRSLT",$J)) K @%ut("RSLT")
GUILOAD+4 S %utROU(1)=%utROUN
GUILOAD+5 D GETLIST(.%utROU,1,%ut("RSLT"))
GUILOAD+6 S @%ut("RSLT")@(1)=(@%ut("RSLT")@(1))_"^1"
GUILOAD+7 S %utRSLT=%ut("RSLT")
GUILOAD+8 Q
Tag GUINEXT^%ut (0.00%) 0 out of 43 lines covered
the following is a list of the lines **NOT** covered
GUINEXT+5 N %utETRY,%utROUT,XTOLROU,XTVALUE,%utERR,%utGUI
GUINEXT+6 N %ut
GUINEXT+7 I $G(XTGUISEP)="" S XTGUISEP="^"
GUINEXT+8 D SETUT
GUINEXT+9 S %ut("LOC")=%utLOC
GUINEXT+10 S %ut("CURR")=0,%ut("ECNT")=0,%ut("FAIL")=0,%ut("CHK")=0,%ut("
NENT")=0,%ut("ERRN")=0
GUINEXT+11 S XTVALUE=$NA(^TMP("GUI-MUNIT",$J))
GUINEXT+12 S %ut("RSLT")=$NA(^TMP("GUINEXT",$J)) K @%ut("RSLT")
GUINEXT+13 S %utRSLT=%ut("RSLT")
GUINEXT+14 S %utETRY=$P(%utLOC,U),%utROUT=$P(%utLOC,U,2),XTOLROU=$G(@XTVA
LUE@("LASTROU"))
GUINEXT+15 S %utGUI=1
GUINEXT+16 S %ut("CHK")=0,%ut("CNT")=1,%utERR=0
GUINEXT+17 D I %utROUT="" S @%utRSLT@(1)="" Q ; 141018 JLI - Have to le
ave XTVALUE intact, in case they simply run again for STARTUP, etc.
GUINEXT+18 . I XTOLROU="",$D(@XTVALUE@("STARTUP")) D
GUINEXT+19 . . S %ut("LOC")=@XTVALUE@("STARTUP")
GUINEXT+20 . . N $ETRAP S $ETRAP="D ERROR^%ut"
GUINEXT+21 . . D @(@XTVALUE@("STARTUP"))
GUINEXT+22 . . Q
GUINEXT+23 . S @XTVALUE@("LASTROU")=%utROUT I %utROUT'="",$T(@("SETUP^"_%
utROUT))'="" D
GUINEXT+24 . . S %ut("LOC")="SETUP^"_%utROUT
GUINEXT+25 . . N $ETRAP S $ETRAP="D ERROR^%ut"
GUINEXT+26 . . D @("SETUP^"_%utROUT)
GUINEXT+27 . . Q
GUINEXT+28 . I %utROUT="",$D(@XTVALUE@("SHUTDOWN")) D
GUINEXT+29 . . S %ut("LOC")=@XTVALUE@("SHUTDOWN")
GUINEXT+30 . . N $ETRAP S $ETRAP="D ERROR^%ut"
GUINEXT+31 . . D @(@XTVALUE@("SHUTDOWN"))
GUINEXT+32 . . Q
GUINEXT+33 . Q
GUINEXT+34 S %ut("LOC")=%utLOC
GUINEXT+35 S %ut("CHK")=0,%ut("CNT")=1,%utERR=0
GUINEXT+36 D ; to limit range of error trap so we continue through other
tests
GUINEXT+37 . N $ETRAP S $ETRAP="D ERROR^%ut"
GUINEXT+38 . D @%ut("LOC")
GUINEXT+39 . Q
GUINEXT+40 I $T(@("TEARDOWN^"_%utROUT))'="" D
GUINEXT+41 . S %ut("LOC")="TEARDOWN^"_%utROUT
GUINEXT+42 . N $ETRAP S $ETRAP="D ERROR^%ut"
GUINEXT+43 . D @("TEARDOWN^"_%utROUT)
GUINEXT+44 . Q
GUINEXT+45 S @%ut("RSLT")@(1)=%ut("CHK")_XTGUISEP_(%ut("CNT")-1-%utERR)_X
TGUISEP_%utERR
GUINEXT+46 K ^TMP("%ut",$J,"UTVALS")
GUINEXT+47 Q
Tag GUISET^%ut (0.00%) 0 out of 8 lines covered
the following is a list of the lines **NOT** covered
GUISET+1 N %utROU,%utLIST,%ut
GUISET+2 D SETUT
GUISET+3 S %ut("RSLT")=$NA(^TMP("MUNIT-%utRSLT",$J)) K @%ut("RSLT")
GUISET+4 D GETSET(XTSET,.%utROU,.%utLIST)
GUISET+5 D GETLIST(.%utROU,%utLIST,%ut("RSLT"))
GUISET+6 S @%ut("RSLT")@(1)=(@%ut("RSLT")@(1))_"^1" ; 110719 mark as new
version
GUISET+7 S %utRSLT=%ut("RSLT")
GUISET+8 Q
Tag ISUTEST^%ut (100.00%) 1 out of 1 lines covered
Tag LOAD^%ut (0.00%) 0 out of 10 lines covered
the following is a list of the lines **NOT** covered
LOAD+1 I $T(@("^"_%utROUN))="" S %utNCNT=%utNCNT+1,@XTVALUE@(%utNCNT)=%ut
ROUN_"^^*** ERROR - ROUTINE NAME NOT FOUND" Q
LOAD+2 S %utNCNT=%utNCNT+1,@XTVALUE@(%utNCNT)=%utROUN_U_U_XTCOMNT
LOAD+3 N %utI,XTX1,XTX2,LINE,LIST,I
LOAD+4 I $T(@("STARTUP^"_%utROUN))'="",'$D(@XTVALUE@("STARTUP")) S @XTVAL
UE@("STARTUP")="STARTUP^"_%utROUN
LOAD+5 I $T(@("SHUTDOWN^"_%utROUN))'="",'$D(@XTVALUE@("SHUTDOWN")) S @XTV
ALUE@("SHUTDOWN")="SHUTDOWN^"_%utROUN
LOAD+6 D NEWSTYLE^%ut1(.LIST,%utROUN)
LOAD+7 F I=1:1:LIST S %utNCNT=%utNCNT+1,@XTVALUE@(%utNCNT)=%utROUN_U_LIST
(I)
LOAD+8 F %utI=1:1 S LINE=$T(@("XTENT+"_%utI_"^"_%utROUN)) S XTX1=$P(LINE,
";",3) Q:XTX1="" S XTX2=$P(LINE,";",4),%utNCNT=%utNCNT+1,@XTVALUE@(%utNCNT)=%ut
ROUN_U_XTX1_U_XTX2
LOAD+9 F %utI=1:1 S LINE=$T(@("XTROU+"_%utI_"^"_%utROUN)) S XTX1=$P(LINE,
";",3) Q:XTX1="" S XTCOMNT=$P(LINE,";",4) I '$D(%utROUL(XTX1)) S %utROUL(XTX1)=
"" D LOAD(XTX1,.%utNCNT,XTVALUE,XTCOMNT,.%utROUL)
LOAD+10 Q
Tag LSTUTVAL^%ut (100.00%) 4 out of 4 lines covered
Tag MULTAPIS^%ut (100.00%) 2 out of 2 lines covered
Tag PICKSET^%ut (100.00%) 3 out of 3 lines covered
Tag RUNSET^%ut (0.00%) 0 out of 9 lines covered
the following is a list of the lines **NOT** covered
RUNSET+1 N Y,%utROU,%utLIST,%utVERB
RUNSET+2 Q:$G(SETNAME)=""
RUNSET+3 S %utVERB=$G(VERBOSE,0)
RUNSET+4 S Y=+$$FIND1^DIC(17.9001,"","X",SETNAME) Q:Y'>0
RUNSET+5 D GETSET(Y,.%utROU,.%utLIST)
RUNSET+6 N Y,SETNAME,%ut
RUNSET+7 D SETUT
RUNSET+8 D EN1(.%utROU,%utLIST)
RUNSET+9 Q
Tag SETUT^%ut (100.00%) 6 out of 6 lines covered
Tag SUCCEED^%ut (100.00%) 6 out of 6 lines covered
Tag VERBOSE^%ut (100.00%) 11 out of 11 lines covered
Tag VERBOSE1^%ut (100.00%) 4 out of 4 lines covered
Tag ZHDIF^%ut (0.00%) 0 out of 10 lines covered
the following is a list of the lines **NOT** covered
ZHDIF+1 N SC0 S SC0=$P(%ZH0,",",2)
ZHDIF+2 N SC1 S SC1=$P(%ZH1,",",2)
ZHDIF+3 N DC0 S DC0=$P(%ZH0,",")*86400
ZHDIF+4 N DC1 S DC1=$P(%ZH1,",")*86400
ZHDIF+5 N MCS0 S MCS0=$P(%ZH0,",",3)/1000000
ZHDIF+6 N MCS1 S MCS1=$P(%ZH1,",",3)/1000000
ZHDIF+8 N T0 S T0=SC0+DC0+MCS0
ZHDIF+9 N T1 S T1=SC1+DC1+MCS1
ZHDIF+11 N %ZH2 S %ZH2=T1-T0*1000
ZHDIF+12 QUIT %ZH2
Routine %ut1 (81.82%) 234 out of 286 lines covered
- Detailed Breakdown
Tag %ut1^%ut1 (100.00%) 2 out of 2 lines covered
Tag ACTLINES^%ut1 (100.00%) 8 out of 8 lines covered
Tag CACHECOV^%ut1 (88.24%) 15 out of 17 lines covered
the following is a list of the lines **NOT** covered
CACHECOV+14 . . X "N %,%N S %N=0 X ""ZL @X F XCNP=XCNP+1:1 S %N=%N+1,%=$T
(+%N) Q:$L(%)=0 S @(DIF_XCNP_"""",0)"""")=%""" ; JLI see 160701 note in comment
s at top
CACHECOV+15 . . Q
Tag CHECKTAG^%ut1 (100.00%) 5 out of 5 lines covered
Tag CHEKTEST^%ut1 (100.00%) 17 out of 17 lines covered
Tag CHKTAGS^%ut1 (100.00%) 10 out of 10 lines covered
Tag COV^%ut1 (48.68%) 37 out of 76 lines covered
the following is a list of the lines **NOT** covered
COV+33 . N NMSP S NMSP=$G(NMSPS)
COV+34 . D:NMSP]"" S NMSP="" F S NMSP=$O(NMSPS(NMSP)) Q:NMSP="" D
COV+35 . . S NMSP1=NMSP I NMSP["*" S NMSP1=$P(NMSP,"*")
COV+36 . . I $D(^$R(NMSP1)) S RTNS(NMSP1)=""
COV+37 . . I NMSP["*" S RTN=NMSP1 F S RTN=$O(^$R(RTN)) Q:RTN'[NMSP1 S R
TNS(RTN)=""
COV+38 . . Q
COV+39 . Q
COV+50 . K ^TMP("%utCOVCOHORTSAV",$J)
COV+51 . M ^TMP("%utCOVCOHORTSAV",$J)=^TMP("%utCOVCOHORT",$J)
COV+52 . K ^TMP("%utCOVRESULT",$J)
COV+53 . S ^TMP("%utcovrunning",$J)=1,%utcovxx=1
COV+55 . I ($$GETSYS^%ut()=47) VIEW "TRACE":1:$NA(^TMP("%utCOVRESULT",$J)
) ; GT.M START PROFILING
COV+58 . . N NMSP,NMSPV S NMSP="",NMSPV="" F S NMSPV=$O(RTNS(NMSPV)) Q:N
MSPV="" S NMSP=NMSP_NMSPV_","
COV+59 . . S NMSP=$E(NMSP,1,$L(NMSP)-1)
COV+60 . . S STATUS=##class(%Monitor.System.LineByLine).Start($lb(NMSP),$
lb("RtnLine"),$lb($j))
COV+61 . . I +STATUS'=1 D DecomposeStatus^%apiOBJ(STATUS,.ERR,"-d") F I=1
:1:ERR W ERR(I),!
COV+62 . . I +STATUS'=1 K ERR S EXIT=1
COV+63 . . Q
COV+78 . I ($$GETSYS^%ut()=0) ; CACHE SPECIFIC
COV+79 . K %utcovxx,^TMP("%utcovrunning",$J)
COV+80 . Q
COV+83 . I ($$GETSYS^%ut()=0) D ; CACHE SPECIFIC CODE
COV+84 . . S COVERSAV=$NA(^TMP("%utCOVCOHORTSAV",$J)) K @COVERSAV
COV+85 . . S COVER=$NA(^TMP("%utCOVCOHORT",$J)) K @COVER
COV+86 . . D CACHECOV(COVERSAV,COVER)
COV+87 . . D TOTAGS(COVERSAV,0),TOTAGS(COVER,1)
COV+88 . . D ##class(%Monitor.System.LineByLine).Stop()
COV+89 . . Q
COV+90 . D COVCOV($NA(^TMP("%utCOVCOHORT",$J)),$NA(^TMP("%utCOVRESULT",$J
))) ; Venn diagram matching between globals
COV+92 . I VERBOSITY=-1 D
COV+93 . . K ^TMP("%utCOVREPORT",$J)
COV+94 . . D COVRPTGL^%utcover($NA(^TMP("%utCOVCOHORTSAV",$J)),$NA(^TMP("
%utCOVCOHORT",$J)),$NA(^TMP("%utCOVRESULT",$J)),$NA(^TMP("%utCOVREPORT",$J)))
COV+95 . . K ^TMP("%utCOVCOHORTSAV",$J),^TMP("%utCOVCOHORT",$J),^TMP("%ut
COVRESULT",$J) ; %utCOVREPORT contains the data for the user
COV+96 . . Q
COV+97 . E D
COV+98 . . D COVRPT($NA(^TMP("%utCOVCOHORTSAV",$J)),$NA(^TMP("%utCOVCOHOR
T",$J)),$NA(^TMP("%utCOVRESULT",$J)),VERBOSITY)
COV+99 . . K ^TMP("%utCOVCOHORTSAV",$J),^TMP("%utCOVCOHORT",$J),^TMP("%ut
COVRESULT",$J),^TMP("%utCOVREPORT",$J)
COV+100 . . Q
COV+101 . Q
Tag COVCOV^%ut1 (100.00%) 9 out of 9 lines covered
Tag COVRPT^%ut1 (100.00%) 5 out of 5 lines covered
Tag COVRPTLS^%ut1 (100.00%) 31 out of 31 lines covered
Tag FAIL^%ut1 (100.00%) 12 out of 12 lines covered
Tag GETTAG^%ut1 (100.00%) 4 out of 4 lines covered
Tag GETTREE^%ut1 (100.00%) 7 out of 7 lines covered
Tag GETVALS^%ut1 (0.00%) 0 out of 11 lines covered
the following is a list of the lines **NOT** covered
GETVALS+2 N LINE,MORE,ROUNAME,RSET,VAL,X
GETVALS+4 S RSET=##class(%ResultSet).%New("%Monitor.System.LineByLine:Res
ult")
GETVALS+5 S ROUNAME=##class(%Monitor.System.LineByLine).GetRoutineName(RO
UNUM)
GETVALS+6 S LINE=RSET.Execute(ROUNAME)
GETVALS+7 F LINE=1:1 S MORE=RSET.Next() Q:'MORE D
GETVALS+8 . S X=RSET.GetData(1)
GETVALS+9 . S VAL=$LI(X,MTRICNUM)
GETVALS+10 . S @GLOB@(ROUNAME,LINE,"C")=+VAL ; values are 0 if not seen,
otherwises positive number
GETVALS+11 . Q
GETVALS+12 D RSET.Close()
GETVALS+13 Q
Tag ISUTEST^%ut1 (100.00%) 1 out of 1 lines covered
Tag LINEDATA^%ut1 (100.00%) 9 out of 9 lines covered
Tag NEWSTYLE^%ut1 (100.00%) 4 out of 4 lines covered
Tag NVLDARG^%ut1 (100.00%) 11 out of 11 lines covered
Tag RESETIO^%ut1 (100.00%) 2 out of 2 lines covered
Tag RTNANAL^%ut1 (100.00%) 29 out of 29 lines covered
Tag SETIO^%ut1 (100.00%) 2 out of 2 lines covered
Tag TOTAGS^%ut1 (100.00%) 13 out of 13 lines covered
Tag UP^%ut1 (100.00%) 1 out of 1 lines covered
Routine %utcover (100.00%) 108 out of 108 lines covered
- Detailed Breakdown
Tag %utcover^%utcover (100.00%) 2 out of 2 lines covered
Tag CHKLEAKS^%utcover (100.00%) 13 out of 13 lines covered
Tag COVENTRY^%utcover (100.00%) 15 out of 15 lines covered
Tag COVERAGE^%utcover (100.00%) 14 out of 14 lines covered
Tag COVRPTGL^%utcover (100.00%) 14 out of 14 lines covered
Tag LIST^%utcover (100.00%) 38 out of 38 lines covered
Tag MULTAPIS^%utcover (100.00%) 5 out of 5 lines covered
Tag SETROUS^%utcover (100.00%) 4 out of 4 lines covered
Tag TRIMDATA^%utcover (100.00%) 3 out of 3 lines covered
Routine %ut (59.59%) 174 out of 292 lines covered
- Summary
Tag %ut^%ut (100.00%) 2 out of 2 lines covered
Tag CHKEQ^%ut (100.00%) 18 out of 18 lines covered
Tag CHKLEAKS^%ut (100.00%) 2 out of 2 lines covered
Tag CHKTF^%ut (100.00%) 15 out of 15 lines covered
Tag COV^%ut (100.00%) 2 out of 2 lines covered
Tag COVERAGE^%ut (100.00%) 2 out of 2 lines covered
Tag DOSET^%ut (0.00%) 0 out of 6 lines covered
Tag EN^%ut (100.00%) 7 out of 7 lines covered
Tag EN1^%ut (94.12%) 64 out of 68 lines covered
Tag ERROR^%ut (55.56%) 5 out of 9 lines covered
Tag ERROR1^%ut (100.00%) 9 out of 9 lines covered
Tag FAIL^%ut (100.00%) 2 out of 2 lines covered
Tag GETLIST^%ut (0.00%) 0 out of 12 lines covered
Tag GETSET^%ut (0.00%) 0 out of 4 lines covered
Tag GETSYS^%ut (100.00%) 3 out of 3 lines covered
Tag GETUTVAL^%ut (100.00%) 5 out of 5 lines covered
Tag GTMVER^%ut (100.00%) 1 out of 1 lines covered
Tag GUILOAD^%ut (0.00%) 0 out of 8 lines covered
Tag GUINEXT^%ut (0.00%) 0 out of 43 lines covered
Tag GUISET^%ut (0.00%) 0 out of 8 lines covered
Tag ISUTEST^%ut (100.00%) 1 out of 1 lines covered
Tag LOAD^%ut (0.00%) 0 out of 10 lines covered
Tag LSTUTVAL^%ut (100.00%) 4 out of 4 lines covered
Tag MULTAPIS^%ut (100.00%) 2 out of 2 lines covered
Tag PICKSET^%ut (100.00%) 3 out of 3 lines covered
Tag RUNSET^%ut (0.00%) 0 out of 9 lines covered
Tag SETUT^%ut (100.00%) 6 out of 6 lines covered
Tag SUCCEED^%ut (100.00%) 6 out of 6 lines covered
Tag VERBOSE^%ut (100.00%) 11 out of 11 lines covered
Tag VERBOSE1^%ut (100.00%) 4 out of 4 lines covered
Tag ZHDIF^%ut (0.00%) 0 out of 10 lines covered
Routine %ut1 (81.82%) 234 out of 286 lines covered
- Summary
Tag %ut1^%ut1 (100.00%) 2 out of 2 lines covered
Tag ACTLINES^%ut1 (100.00%) 8 out of 8 lines covered
Tag CACHECOV^%ut1 (88.24%) 15 out of 17 lines covered
Tag CHECKTAG^%ut1 (100.00%) 5 out of 5 lines covered
Tag CHEKTEST^%ut1 (100.00%) 17 out of 17 lines covered
Tag CHKTAGS^%ut1 (100.00%) 10 out of 10 lines covered
Tag COV^%ut1 (48.68%) 37 out of 76 lines covered
Tag COVCOV^%ut1 (100.00%) 9 out of 9 lines covered
Tag COVRPT^%ut1 (100.00%) 5 out of 5 lines covered
Tag COVRPTLS^%ut1 (100.00%) 31 out of 31 lines covered
Tag FAIL^%ut1 (100.00%) 12 out of 12 lines covered
Tag GETTAG^%ut1 (100.00%) 4 out of 4 lines covered
Tag GETTREE^%ut1 (100.00%) 7 out of 7 lines covered
Tag GETVALS^%ut1 (0.00%) 0 out of 11 lines covered
Tag ISUTEST^%ut1 (100.00%) 1 out of 1 lines covered
Tag LINEDATA^%ut1 (100.00%) 9 out of 9 lines covered
Tag NEWSTYLE^%ut1 (100.00%) 4 out of 4 lines covered
Tag NVLDARG^%ut1 (100.00%) 11 out of 11 lines covered
Tag RESETIO^%ut1 (100.00%) 2 out of 2 lines covered
Tag RTNANAL^%ut1 (100.00%) 29 out of 29 lines covered
Tag SETIO^%ut1 (100.00%) 2 out of 2 lines covered
Tag TOTAGS^%ut1 (100.00%) 13 out of 13 lines covered
Tag UP^%ut1 (100.00%) 1 out of 1 lines covered
Routine %utcover (100.00%) 108 out of 108 lines covered