ZZCOVTST.m 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. ZZCOVTST;OSEHRA/JPS -- Test routine for Coverage Parsing;4/28/2014
  2. ; (tab) This is series of comments
  3. ; (tab) it should all be not executable
  4. ; (spaces) one of these sets might be a problem
  5. ; (spaces) we will have to see.
  6. EN ; This entry point shouldn't be found without fixing
  7. N D
  8. S D=1 ;An executable line
  9. D T1^ZZCOVTST
  10. I '$$T5 W "RETURNED FROM t5",!
  11. Q
  12. ; This line not executable
  13. D T6^ZZCOVTST
  14. ;
  15. T1 ; This line should always be found
  16. N D
  17. S D=2
  18. W !,D,!,"This is the second entry point",!
  19. D T2^ZZCOVTST(D)
  20. Q
  21. ;
  22. T2(EQ) ; This is debatable and only called with ENT^ROU notation
  23. N D
  24. S D=3
  25. W !,D,!,EQ,"This is the third entry point",!
  26. D T3^ZZCOVTST
  27. Q
  28. ;
  29. T3 N D S D=4 W D,!,"Fourth Entry point",! Q
  30. ;
  31. T4 N D S D=5 W "Shouldn't be executed"
  32. W "Lots to not do"
  33. Q
  34. T5(EQ) ;this entry point is called with a $$ notation
  35. W "THIS IS THE $$ NOTATION!",!
  36. Q 0
  37. T6 ; An entry point to show comments inside of "DO" blocks
  38. D
  39. . W "This is executable code",!
  40. . ;This is a comment inside the do block, not executable
  41. . S ZZBLAH="blah"
  42. W "Ending T6",!
  43. ;