forked from github/codeql
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCucumber.qll
More file actions
35 lines (30 loc) · 933 Bytes
/
Cucumber.qll
File metadata and controls
35 lines (30 loc) · 933 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/**
* Cucumber is an open-source project for writing executable acceptance tests in human-readable `.feature` files.
*/
import java
/**
* An annotation defined in the Cucumber library.
*/
class CucumberAnnotation extends Annotation {
CucumberAnnotation() { getType().getPackage().getName().matches("cucumber.api.java%") }
}
/**
* A Cucumber interface for a specific language.
*/
class CucumberJava8Language extends Interface {
CucumberJava8Language() {
getASupertype().getAnAncestor().hasQualifiedName("cucumber.runtime.java8", "LambdaGlueBase")
}
}
/**
* A step definition for Cucumber.
*/
class CucumberStepDefinition extends Method {
CucumberStepDefinition() { getAnAnnotation() instanceof CucumberAnnotation }
}
/**
* A class containing Cucumber step definitions.
*/
class CucumberStepDefinitionClass extends Class {
CucumberStepDefinitionClass() { getAMember() instanceof CucumberStepDefinition }
}