GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Fix C# line counting and add test · github/codeql-action@7618995

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • lib
    • count-loc.test.js.map
    • count-loc.test.js
  • package.json
  • src
    • count-loc.test.ts
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎lib/count-loc.test.js‎

Copy file name to clipboardExpand all lines: lib/count-loc.test.js
+6Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Collapse file

‎lib/count-loc.test.js.map‎

Copy file name to clipboardExpand all lines: lib/count-loc.test.js.map
+1-1Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Collapse file

‎package.json‎

Copy file name to clipboardExpand all lines: package.json
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"fast-deep-equal": "^3.1.3",
3737
"file-url": "^3.0.0",
3838
"fs": "0.0.1-security",
39-
"github-linguist": "^2.4.2",
39+
"github-linguist": "^2.4.3",
4040
"glob": "^7.1.7",
4141
"js-yaml": "^3.13.1",
4242
"jsonschema": "1.2.6",
@@ -72,4 +72,4 @@
7272
"sinon": "^9.0.2",
7373
"typescript": "^3.7.5"
7474
}
75-
}
75+
}
Collapse file

‎src/count-loc.test.ts‎

Copy file name to clipboardExpand all lines: src/count-loc.test.ts
+14Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,20 @@ test("ensure lines of code works for cpp and js", async (t) => {
2424
});
2525
});
2626

27+
test("ensure lines of code works for csharp", async (t) => {
28+
const results = await countLoc(
29+
path.join(__dirname, "../tests/multi-language-repo"),
30+
[],
31+
[],
32+
[Language.csharp],
33+
getRunnerLogger(true)
34+
);
35+
36+
t.deepEqual(results, {
37+
csharp: 10,
38+
});
39+
});
40+
2741
test("ensure lines of code can handle undefined language", async (t) => {
2842
const results = await countLoc(
2943
path.join(__dirname, "../tests/multi-language-repo"),

0 commit comments

Comments
0 (0)
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.