Skip to content

Commit

Permalink
Merge pull request #2489 from github/redsun82/rust
Browse files Browse the repository at this point in the history
Add basic Rust support for internal testing
  • Loading branch information
redsun82 authored Oct 7, 2024
2 parents 7cf65a5 + 6fc72c1 commit 56d1975
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 2 deletions.
1 change: 1 addition & 0 deletions lib/languages.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/languages.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions lib/languages.test.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/languages.test.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions src/languages.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ test("parseLanguage", async (t) => {
t.deepEqual(parseLanguage("java"), Language.java);
t.deepEqual(parseLanguage("javascript"), Language.javascript);
t.deepEqual(parseLanguage("python"), Language.python);
t.deepEqual(parseLanguage("rust"), Language.rust);

// Aliases
t.deepEqual(parseLanguage("c"), Language.cpp);
Expand Down Expand Up @@ -46,6 +47,7 @@ test("isTracedLanguage", async (t) => {
t.false(isTracedLanguage(Language.javascript));
t.false(isTracedLanguage(Language.python));
t.false(isTracedLanguage(Language.ruby));
t.false(isTracedLanguage(Language.rust));
});

test("isScannedLanguage", async (t) => {
Expand All @@ -58,4 +60,5 @@ test("isScannedLanguage", async (t) => {
t.true(isScannedLanguage(Language.javascript));
t.true(isScannedLanguage(Language.python));
t.true(isScannedLanguage(Language.ruby));
t.true(isScannedLanguage(Language.rust));
});
1 change: 1 addition & 0 deletions src/languages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export enum Language {
javascript = "javascript",
python = "python",
ruby = "ruby",
rust = "rust",
swift = "swift",
}

Expand Down

0 comments on commit 56d1975

Please sign in to comment.