Skip to content

Commit 91a6a63

Browse files
committed
README: add function/operator table
1 parent 3b080b7 commit 91a6a63

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

Diff for: README.md

+13
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,16 @@ version of coverage measurement software.
3131
The string extractor has a cache, which is enabled by default and can
3232
optionally be persisted to a file. This helps with efficiently handling loops
3333
in code, as well as overlapping execution traces.
34+
35+
## Overview of recognized functions and operators
36+
37+
|Node type | Function or operator | Type of constant extracted | Example expression|
38+
|----------|----------------------|----------------------------| ------------------|
39+
|Comparison | == (equals operator) | Full string | a == "foo" |
40+
|Comparison | != (does not equal operator) | Full string | a != "foo" |
41+
|Comparison | in (part of operator) | String fragment | "foo" in a |
42+
|Comparison | in (match with collection) | List of full strings | a in ["foo","bar"] |
43+
|Call | string.startswith | String prefix | a.startswith("foo") |
44+
|Call | string.endswith | String suffix | a.endswith("foo") |
45+
|Call | string.find | String fragment | a.find("foo") |
46+
|Call | string.index | String fragment | a.index("foo") |

0 commit comments

Comments
 (0)