From 9892836f14532f585d60f0650e70da5b0aa24f79 Mon Sep 17 00:00:00 2001 From: Owen Mansel-Chan Date: Fri, 12 Sep 2025 11:35:18 +0100 Subject: [PATCH] Switch order of PUN test output --- .../go/dataflow/PostUpdateNodes/test.expected | 22 +++++++++---------- .../go/dataflow/PostUpdateNodes/test.ql | 2 +- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/go/ql/test/library-tests/semmle/go/dataflow/PostUpdateNodes/test.expected b/go/ql/test/library-tests/semmle/go/dataflow/PostUpdateNodes/test.expected index 9f29e364be9..6959eac7e2f 100644 --- a/go/ql/test/library-tests/semmle/go/dataflow/PostUpdateNodes/test.expected +++ b/go/ql/test/library-tests/semmle/go/dataflow/PostUpdateNodes/test.expected @@ -1,26 +1,26 @@ -| file://:0:0:0:0 | [summary] to write: Argument[0] in copy | file://:0:0:0:0 | [summary param] 0 in copy | -| test.go:22:2:22:2 | definition of a | test.go:23:2:23:2 | a | -| test.go:22:2:22:2 | definition of a | test.go:24:2:24:2 | a | -| test.go:22:2:22:2 | definition of a | test.go:25:2:25:2 | a | -| test.go:22:2:22:2 | definition of a | test.go:26:2:26:2 | a | -| test.go:22:2:22:2 | definition of a | test.go:29:6:29:6 | a | -| test.go:22:2:22:2 | definition of a | test.go:30:7:30:7 | a | -| test.go:22:2:22:2 | definition of a | test.go:35:4:35:4 | a | -| test.go:22:2:22:2 | definition of a | test.go:36:5:36:5 | a | +| file://:0:0:0:0 | [summary param] 0 in copy | file://:0:0:0:0 | [summary] to write: Argument[0] in copy | +| test.go:23:2:23:2 | a | test.go:22:2:22:2 | definition of a | | test.go:23:11:23:14 | &... | test.go:23:11:23:14 | &... | | test.go:23:12:23:14 | selection of b | test.go:23:12:23:14 | selection of b | +| test.go:24:2:24:2 | a | test.go:22:2:22:2 | definition of a | | test.go:24:2:24:5 | selection of bs | test.go:24:2:24:5 | selection of bs | | test.go:24:2:24:8 | index expression | test.go:24:2:24:8 | index expression | | test.go:24:17:24:20 | &... | test.go:24:17:24:20 | &... | | test.go:24:18:24:20 | struct literal | test.go:24:18:24:20 | struct literal | +| test.go:25:2:25:2 | a | test.go:22:2:22:2 | definition of a | | test.go:25:2:25:5 | selection of bs | test.go:25:2:25:5 | selection of bs | | test.go:25:2:25:8 | index expression | test.go:25:2:25:8 | index expression | | test.go:25:2:25:13 | implicit dereference | test.go:25:2:25:13 | implicit dereference | | test.go:25:2:25:13 | selection of cptr | test.go:25:2:25:13 | selection of cptr | +| test.go:26:2:26:2 | a | test.go:22:2:22:2 | definition of a | | test.go:26:2:26:7 | implicit dereference | test.go:26:2:26:7 | implicit dereference | | test.go:26:2:26:7 | selection of bptr | test.go:26:2:26:7 | selection of bptr | | test.go:26:2:26:12 | implicit dereference | test.go:26:2:26:12 | implicit dereference | | test.go:26:2:26:12 | selection of cptr | test.go:26:2:26:12 | selection of cptr | -| test.go:28:2:28:2 | definition of c | test.go:29:2:29:2 | c | -| test.go:28:2:28:2 | definition of c | test.go:30:2:30:2 | c | | test.go:28:7:28:10 | struct literal | test.go:28:7:28:10 | struct literal | +| test.go:29:2:29:2 | c | test.go:28:2:28:2 | definition of c | +| test.go:29:6:29:6 | a | test.go:22:2:22:2 | definition of a | +| test.go:30:2:30:2 | c | test.go:28:2:28:2 | definition of c | +| test.go:30:7:30:7 | a | test.go:22:2:22:2 | definition of a | +| test.go:35:4:35:4 | a | test.go:22:2:22:2 | definition of a | +| test.go:36:5:36:5 | a | test.go:22:2:22:2 | definition of a | diff --git a/go/ql/test/library-tests/semmle/go/dataflow/PostUpdateNodes/test.ql b/go/ql/test/library-tests/semmle/go/dataflow/PostUpdateNodes/test.ql index ca2a9c5980b..b200ed4b8a7 100644 --- a/go/ql/test/library-tests/semmle/go/dataflow/PostUpdateNodes/test.ql +++ b/go/ql/test/library-tests/semmle/go/dataflow/PostUpdateNodes/test.ql @@ -1,4 +1,4 @@ import go from DataFlow::PostUpdateNode pun -select pun, pun.getPreUpdateNode() +select pun.getPreUpdateNode(), pun