mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
Swift: add unit tests to code generation
Tests can be run with ``` bazel test //swift/codegen:tests ``` Coverage can be checked installing `pytest-cov` and running ``` pytest --cov=swift/codegen swift/codegen/test ```
This commit is contained in:
@@ -15,6 +15,16 @@ answer_to_life_the_universe_and_everything(
|
||||
|
||||
// from codegen/schema.yml
|
||||
|
||||
@element =
|
||||
@argument
|
||||
| @file
|
||||
| @generic_context
|
||||
| @iterable_decl_context
|
||||
| @locatable
|
||||
| @location
|
||||
| @type
|
||||
;
|
||||
|
||||
files(
|
||||
unique int id: @file,
|
||||
string name: string ref
|
||||
@@ -1886,13 +1896,3 @@ integer_literal_exprs(
|
||||
unique int id: @integer_literal_expr,
|
||||
string string_value: string ref
|
||||
);
|
||||
|
||||
@element =
|
||||
@argument
|
||||
| @file
|
||||
| @generic_context
|
||||
| @iterable_decl_context
|
||||
| @locatable
|
||||
| @location
|
||||
| @type
|
||||
;
|
||||
|
||||
Reference in New Issue
Block a user