about summary refs log tree commit diff
path: root/tests/coverage/while.cov-map
diff options
context:
space:
mode:
authorZalathar <Zalathar@users.noreply.github.com>2024-01-16 14:12:10 +1100
committerZalathar <Zalathar@users.noreply.github.com>2024-01-16 16:14:27 +1100
commit1f9353ae2ca81b0a508e38751b0d3ab213526f56 (patch)
treeec37b754ef9c1c2aa6d57d5bb1f1d3042485b70a /tests/coverage/while.cov-map
parentf1494425bbb68e71f2bf3aa215fb71978b36acf2 (diff)
downloadrust-1f9353ae2ca81b0a508e38751b0d3ab213526f56.tar.gz
rust-1f9353ae2ca81b0a508e38751b0d3ab213526f56.zip
coverage: Tweak individual tests to be unaffected by `rustfmt`
Some of these tests use non-standard formatting that we can simulate by
strategically adding `//` line comments.

One contains `where` clauses that would be split across multiple lines, which
we can keep on one line by moving the bounds to the generic type instead.
Diffstat (limited to 'tests/coverage/while.cov-map')
-rw-r--r--tests/coverage/while.cov-map6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/coverage/while.cov-map b/tests/coverage/while.cov-map
index af250f3fb71..c6557b48e27 100644
--- a/tests/coverage/while.cov-map
+++ b/tests/coverage/while.cov-map
@@ -1,5 +1,5 @@
 Function name: while::main
-Raw bytes (28): 0x[01, 01, 02, 01, 00, 03, 00, 04, 01, 01, 01, 01, 10, 03, 02, 0b, 00, 14, 00, 00, 15, 01, 06, 06, 02, 01, 00, 02]
+Raw bytes (28): 0x[01, 01, 02, 01, 00, 03, 00, 04, 01, 01, 01, 01, 10, 03, 02, 0b, 00, 14, 00, 00, 15, 02, 06, 06, 03, 01, 00, 02]
 Number of files: 1
 - file 0 => global file 1
 Number of expressions: 2
@@ -9,7 +9,7 @@ Number of file 0 mappings: 4
 - Code(Counter(0)) at (prev + 1, 1) to (start + 1, 16)
 - Code(Expression(0, Add)) at (prev + 2, 11) to (start + 0, 20)
     = (c0 + Zero)
-- Code(Zero) at (prev + 0, 21) to (start + 1, 6)
-- Code(Expression(1, Sub)) at (prev + 2, 1) to (start + 0, 2)
+- Code(Zero) at (prev + 0, 21) to (start + 2, 6)
+- Code(Expression(1, Sub)) at (prev + 3, 1) to (start + 0, 2)
     = ((c0 + Zero) - Zero)