diff --git a/rust/ql/test/library-tests/dataflow/barrier/inline-flow.expected b/rust/ql/test/library-tests/dataflow/barrier/inline-flow.expected index c59ea4cc6703..a54c75d0c17f 100644 --- a/rust/ql/test/library-tests/dataflow/barrier/inline-flow.expected +++ b/rust/ql/test/library-tests/dataflow/barrier/inline-flow.expected @@ -1,10 +1,16 @@ models edges +| main.rs:21:13:21:21 | CallExpr : unit | main.rs:22:10:22:10 | s | provenance | | +| main.rs:32:13:32:21 | CallExpr : unit | main.rs:33:10:33:10 | s | provenance | | nodes | main.rs:17:10:17:18 | CallExpr | semmle.label | CallExpr | +| main.rs:21:13:21:21 | CallExpr : unit | semmle.label | CallExpr : unit | +| main.rs:22:10:22:10 | s | semmle.label | s | +| main.rs:32:13:32:21 | CallExpr : unit | semmle.label | CallExpr : unit | +| main.rs:33:10:33:10 | s | semmle.label | s | subpaths testFailures -| main.rs:22:14:22:32 | Comment | Missing result: hasValueFlow=1 | -| main.rs:33:14:33:32 | Comment | Missing result: hasValueFlow=1 | #select | main.rs:17:10:17:18 | CallExpr | main.rs:17:10:17:18 | CallExpr | main.rs:17:10:17:18 | CallExpr | $@ | main.rs:17:10:17:18 | CallExpr | CallExpr | +| main.rs:22:10:22:10 | s | main.rs:21:13:21:21 | CallExpr : unit | main.rs:22:10:22:10 | s | $@ | main.rs:21:13:21:21 | CallExpr : unit | CallExpr : unit | +| main.rs:33:10:33:10 | s | main.rs:32:13:32:21 | CallExpr : unit | main.rs:33:10:33:10 | s | $@ | main.rs:32:13:32:21 | CallExpr : unit | CallExpr : unit | diff --git a/rust/ql/test/library-tests/definitions/CONSISTENCY/DataFlowConsistency.expected b/rust/ql/test/library-tests/definitions/CONSISTENCY/DataFlowConsistency.expected new file mode 100644 index 000000000000..8d729bb5fd93 --- /dev/null +++ b/rust/ql/test/library-tests/definitions/CONSISTENCY/DataFlowConsistency.expected @@ -0,0 +1,4 @@ +uniqueEnclosingCallable +| main.rs:5:29:5:33 | width | Node should have one enclosing callable but has 0. | +| main.rs:5:36:5:44 | precision | Node should have one enclosing callable but has 0. | +| main.rs:9:22:9:27 | people | Node should have one enclosing callable but has 0. | diff --git a/rust/ql/test/library-tests/formatstrings/CONSISTENCY/DataFlowConsistency.expected b/rust/ql/test/library-tests/formatstrings/CONSISTENCY/DataFlowConsistency.expected new file mode 100644 index 000000000000..5bd870a72056 --- /dev/null +++ b/rust/ql/test/library-tests/formatstrings/CONSISTENCY/DataFlowConsistency.expected @@ -0,0 +1,5 @@ +uniqueEnclosingCallable +| main.rs:5:29:5:33 | width | Node should have one enclosing callable but has 0. | +| main.rs:5:36:5:44 | precision | Node should have one enclosing callable but has 0. | +| main.rs:16:22:16:27 | people | Node should have one enclosing callable but has 0. | +| main.rs:27:23:27:27 | width | Node should have one enclosing callable but has 0. | diff --git a/rust/ql/test/library-tests/variables/CONSISTENCY/DataFlowConsistency.expected b/rust/ql/test/library-tests/variables/CONSISTENCY/DataFlowConsistency.expected new file mode 100644 index 000000000000..1a8949ec25f9 --- /dev/null +++ b/rust/ql/test/library-tests/variables/CONSISTENCY/DataFlowConsistency.expected @@ -0,0 +1,5 @@ +localFlowIsLocal +| variables.rs:400:9:400:9 | x | variables.rs:402:15:404:5 | [SSA] x | Local flow step does not preserve enclosing callable. | +| variables.rs:410:9:410:13 | x | variables.rs:412:20:414:5 | [SSA] x | Local flow step does not preserve enclosing callable. | +| variables.rs:418:9:418:13 | y | variables.rs:421:9:421:9 | [SSA] y | Local flow step does not preserve enclosing callable. | +| variables.rs:436:9:436:13 | i | variables.rs:438:9:438:9 | [SSA] i | Local flow step does not preserve enclosing callable. | diff --git a/rust/ql/test/query-tests/unusedentities/CONSISTENCY/DataFlowConsistency.expected b/rust/ql/test/query-tests/unusedentities/CONSISTENCY/DataFlowConsistency.expected new file mode 100644 index 000000000000..47300d3b9fa9 --- /dev/null +++ b/rust/ql/test/query-tests/unusedentities/CONSISTENCY/DataFlowConsistency.expected @@ -0,0 +1,7 @@ +uniqueEnclosingCallable +| main.rs:194:25:194:25 | x | Node should have one enclosing callable but has 0. | +| main.rs:198:28:198:28 | x | Node should have one enclosing callable but has 0. | +| main.rs:202:28:202:28 | x | Node should have one enclosing callable but has 0. | +| main.rs:206:28:206:28 | x | Node should have one enclosing callable but has 0. | +localFlowIsLocal +| main.rs:432:9:432:10 | i6 | main.rs:434:20:434:44 | [SSA] i6 | Local flow step does not preserve enclosing callable. |