Skip to content

Commit f6fd401

Browse files
committed
C#: Add some testcases, where we don't get a summary due to the use of simple types.
1 parent f9e5c6b commit f6fd401

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

csharp/ql/test/utils/model-generator/NoSummaries.cs

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,4 +60,29 @@ public bool Equals(T? other)
6060
{
6161
return tainted;
6262
}
63+
}
64+
65+
// No methods in this class will have generated flow summaries as
66+
// simple types are used.
67+
public class SimpleTypes
68+
{
69+
public bool M1(bool b)
70+
{
71+
return b;
72+
}
73+
74+
public Boolean M2(Boolean b)
75+
{
76+
return b;
77+
}
78+
79+
public int M3(int i)
80+
{
81+
return i;
82+
}
83+
84+
public Int32 M4(Int32 i)
85+
{
86+
return i;
87+
}
6388
}

0 commit comments

Comments
 (0)