File tree Expand file tree Collapse file tree 7 files changed +14
-15
lines changed Expand file tree Collapse file tree 7 files changed +14
-15
lines changed File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
1
+ from swift .tools .test .qltest .utils import *
2
+
3
+ set_dummy_extractor ("""
4
+ if [[ " $@ " =~ a.swift ]]; then exit 42; fi
5
+ if [[ " $@ " =~ b.swift ]]; then exit 1; fi
6
+ """ )
7
+ run_qltest ()
8
+ assert_extractor_executed_with (
9
+ "a.swift" ,
10
+ "b.swift" ,
11
+ )
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
- //codeql-extractor-expected-status: 42
File renamed without changes.
Original file line number Diff line number Diff line change 1
1
from swift .tools .test .qltest .utils import *
2
2
3
- set_dummy_extractor ("""
4
- if [[ " $@ " =~ a.swift ]]; then exit 42; fi
5
- if [[ " $@ " =~ b.swift ]]; then exit 1; fi
6
- """ )
7
- run_qltest ()
3
+ set_dummy_extractor ()
4
+ run_qltest (expected_returncode = 1 )
8
5
assert_extractor_executed_with (
9
6
"a.swift" ,
10
7
"b.swift" ,
8
+ "c.swift" ,
11
9
)
You can’t perform that action at this time.
0 commit comments