1 parent bb6b2ce commit 14f38e6Copy full SHA for 14f38e6
1 file changed
actions/ql/lib/codeql/actions/test/internal/InlineExpectationsTestImpl.qll
@@ -2,10 +2,13 @@ private import codeql.Locations as L
2
private import codeql.actions.ast.internal.Yaml
3
private import codeql.util.test.InlineExpectationsTest
4
5
+/** Provides the Actions implementation of inline expectation parsing. */
6
module Impl implements InlineExpectationsTestSig {
7
+ /** A class representing YAML comments that may contain inline expectations. */
8
class ExpectationComment extends YamlNode {
9
ExpectationComment() { this.toString().matches("%$ %") }
10
11
+ /** Gets the contents of this comment, starting at the inline expectation marker (`$`). */
12
string getContents() { result = this.toString().regexpCapture(".*(\\$ .*)", 1) }
13
}
14
0 commit comments