Skip to content

Commit 66ce3f7

Browse files
committed
Tests polished
1 parent 97bc4bd commit 66ce3f7

File tree

7 files changed

+673
-5
lines changed

7 files changed

+673
-5
lines changed

APLSource/Admin/Make.aplf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
M.RecreateFolder path
1010
parms←⎕SE.Tatin.CreateBuildParms C.HOME
1111
parms.targetPath←path
12-
parms.version←{⍵↑⍨¯1+⍵⍳'+'}##.GitHubAPIv3.Version
12+
parms.version←{⍵↑⍨¯1+⍵⍳'+'}cfg.version
13+
parms.projectSpace←'#.GitHubAPIv3'
1314
zipFilename←⎕SE.Tatin.BuildPackage parms
1415
⎕←'*** New version build successfully:',M.CR,' ',zipFilename
1516
:EndIf

APLSource/GitHubAPIv3.aplc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@
1212
:Access Public Shared
1313
⍝ Returns the version number from TatinVars
1414
⍝ See also `History`
15-
r←''
15+
r←'GitHubAPIv3' '' '2025-01-25'
1616
:If 0<##.⎕NC'TatinVars.CONFIG'
17-
r←(⎕JSON⍠('Dialect' 'JSON5')⊢##.TatinVars.CONFIG).version
17+
(2⊃r)←(⎕JSON⍠('Dialect' 'JSON5')⊢##.TatinVars.CONFIG).version
1818
:Else
1919
⍝ When a script is not loaded with Tatin, there will be no namespace `TatinVars`.
2020
⍝ In such cases we cannot provide a version number, so we return an empty char vector
21-
r←''
21+
2222
:EndIf
2323
2424

APLSource/TestCases/RunTests.aplf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
⍝ 3. Processes the code coverage data (if collected)
55
⍝ 4. Asks the user whether the code coverage report should be put on view
66
Prepare
7+
T.codeCoverage.ignore←⊂'#.GitHubAPIv3.GitHubAPIv3.∆List'
78
T.Run 1
89
:If 0<≢T.codeCoverage
910
{}CodeCoverage.ProcessData T.codeCoverage.filename

TestResults/CodeCoverage.cr

1.32 KB
Binary file not shown.

TestResults/CodeCoverage.html

Lines changed: 666 additions & 0 deletions
Large diffs are not rendered by default.

TestResults/CodeCoverage.profile

-104 Bytes
Binary file not shown.

apl-package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@
1919
source: "APLSource/GitHubAPIv3.aplc",
2020
tags: "github-utilities",
2121
userCommandScript: "",
22-
version: "1.5.0+55",
22+
version: "1.6.0+58",
2323
}

0 commit comments

Comments
 (0)