File tree Expand file tree Collapse file tree 4 files changed +17
-5
lines changed
csharp/ql/test/utils/modelgenerator/dataflow Expand file tree Collapse file tree 4 files changed +17
-5
lines changed Original file line number Diff line number Diff line change 1
- | Sources;NewSources;false;WrapConsoleReadKey;();;ReturnValue;local;df-generated |
2
- | Sources;NewSources;false;WrapConsoleReadLine;();;ReturnValue;local;df-generated |
3
- | Sources;NewSources;false;WrapConsoleReadLineAndProcees;(System.String);;ReturnValue;local;df-generated |
1
+ unexpectedModel
2
+ expectedModel
Original file line number Diff line number Diff line change
1
+ import csharp
2
+ import utils.modelgenerator.internal.CaptureModels
3
+ import TestUtilities.InlineMadTest
4
+
5
+ module InlineMadTestConfig implements InlineMadTestConfigSig {
6
+ string getCapturedModel ( Callable c ) { result = captureSource ( c ) }
7
+
8
+ string getKind ( ) { result = "source" }
9
+ }
10
+
11
+ import InlineMadTest< InlineMadTestConfig >
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -5,12 +5,14 @@ namespace Sources;
5
5
public class NewSources
6
6
{
7
7
// New source
8
+ // source=Sources;NewSources;false;WrapConsoleReadLine;();;ReturnValue;local;df-generated
8
9
public string ? WrapConsoleReadLine ( )
9
10
{
10
11
return Console . ReadLine ( ) ;
11
12
}
12
13
13
14
// New source
15
+ // source=Sources;NewSources;false;WrapConsoleReadLineAndProcees;(System.String);;ReturnValue;local;df-generated
14
16
public string WrapConsoleReadLineAndProcees ( string prompt )
15
17
{
16
18
var s = Console . ReadLine ( ) ;
@@ -24,8 +26,9 @@ public string WrapConsoleReadLineAndProcees(string prompt)
24
26
}
25
27
26
28
// New source
29
+ // source=Sources;NewSources;false;WrapConsoleReadKey;();;ReturnValue;local;df-generated
27
30
public ConsoleKeyInfo WrapConsoleReadKey ( )
28
31
{
29
32
return Console . ReadKey ( ) ;
30
33
}
31
- }
34
+ }
You can’t perform that action at this time.
0 commit comments