Skip to content

Commit

Permalink
Merge branch 'master' into unify-file-inline-compat
Browse files Browse the repository at this point in the history
  • Loading branch information
max-sixty committed Aug 12, 2024
2 parents 75e512a + 32f75e7 commit 0988509
Show file tree
Hide file tree
Showing 55 changed files with 56 additions and 65 deletions.
2 changes: 1 addition & 1 deletion insta/src/snapshots/doctest_runtime_rs__named.snap
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: src/runtime.rs
source: insta/src/runtime.rs
expression: "vec![1, 2, 3, 4, 5]"
---
[
Expand Down
2 changes: 1 addition & 1 deletion insta/src/snapshots/insta__test__embedded.snap
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: src/test.rs
source: insta/src/test.rs
expression: "\"Just a string\""
---
Just a string
2 changes: 1 addition & 1 deletion insta/tests/snapshots/snapshot_no_module_prepending.snap
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: tests/test_settings.rs
source: insta/tests/test_settings.rs
expression: "vec![1, 2, 3]"
---
[
Expand Down
2 changes: 1 addition & 1 deletion insta/tests/snapshots/test_basic__Testing.snap
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: tests/test_basic.rs
source: insta/tests/test_basic.rs
expression: expr
---
name
2 changes: 1 addition & 1 deletion insta/tests/snapshots/test_basic__debug_vector.snap
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: tests/test_basic.rs
source: insta/tests/test_basic.rs
expression: "vec![1, 2, 3]"
---
[
Expand Down
2 changes: 1 addition & 1 deletion insta/tests/snapshots/test_basic__display.snap
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: tests/test_basic.rs
source: insta/tests/test_basic.rs
expression: td
---
TestDisplay struct
3 changes: 1 addition & 2 deletions insta/tests/snapshots/test_basic__insta_sort_order.snap
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: tests/test_basic.rs
source: insta/tests/test_basic.rs
expression: m
---
? - 1
Expand All @@ -17,4 +17,3 @@ expression: m
? - 9
- 3
: 4

2 changes: 1 addition & 1 deletion insta/tests/snapshots/test_basic__json_vector.snap
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: tests/test_basic.rs
source: insta/tests/test_basic.rs
expression: "vec![1, 2, 3]"
---
[
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: tests/test_basic.rs
source: insta/tests/test_basic.rs
expression: "\"aoeu\""
---
aoeu
2 changes: 1 addition & 1 deletion insta/tests/snapshots/test_basic__trailing_commas-2.snap
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: tests/test_basic.rs
source: insta/tests/test_basic.rs
expression: "vec![1, 2, 3, 4, 5]"
---
- 1
Expand Down
2 changes: 1 addition & 1 deletion insta/tests/snapshots/test_basic__trailing_commas.snap
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: tests/test_basic.rs
source: insta/tests/test_basic.rs
expression: "\"Testing\""
---
Testing
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: tests/test_basic.rs
source: insta/tests/test_basic.rs
expression: "vec![1, 2, 3, 4]"
---
[
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: tests/test_basic.rs
source: insta/tests/test_basic.rs
expression: "vec![1, 2, 3, 4, 5]"
---
[
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: tests/test_basic.rs
source: insta/tests/test_basic.rs
expression: "vec![1, 2, 3]"
---
[
Expand Down
2 changes: 1 addition & 1 deletion insta/tests/snapshots/test_basic__unnamed_display-2.snap
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: tests/test_basic.rs
source: insta/tests/test_basic.rs
expression: "\"whatever\""
---
whatever
2 changes: 1 addition & 1 deletion insta/tests/snapshots/test_basic__unnamed_display.snap
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: tests/test_basic.rs
source: insta/tests/test_basic.rs
expression: td
---
TestDisplay struct
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: tests/test_basic.rs
source: insta/tests/test_basic.rs
expression: "vec![1, 2, 3, 4]"
---
[
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: tests/test_basic.rs
source: insta/tests/test_basic.rs
expression: "vec![1, 2, 3, 4, 5]"
---
[
Expand Down
2 changes: 1 addition & 1 deletion insta/tests/snapshots/test_basic__unnamed_json_vector.snap
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: tests/test_basic.rs
source: insta/tests/test_basic.rs
expression: "vec![1, 2, 3]"
---
[
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: tests/test_basic.rs
source: insta/tests/test_basic.rs
expression: "vec![1, 2, 3]"
---
[
Expand Down
3 changes: 1 addition & 2 deletions insta/tests/snapshots/test_basic__unnamed_yaml_vector-2.snap
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
---
source: tests/test_basic.rs
source: insta/tests/test_basic.rs
expression: "vec![1, 2, 3, 4]"
---
- 1
- 2
- 3
- 4

3 changes: 1 addition & 2 deletions insta/tests/snapshots/test_basic__unnamed_yaml_vector-3.snap
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
---
source: tests/test_basic.rs
source: insta/tests/test_basic.rs
expression: "vec![1, 2, 3, 4, 5]"
---
- 1
- 2
- 3
- 4
- 5

3 changes: 1 addition & 2 deletions insta/tests/snapshots/test_basic__unnamed_yaml_vector.snap
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
---
source: tests/test_basic.rs
source: insta/tests/test_basic.rs
expression: "vec![1, 2, 3]"
---
- 1
- 2
- 3

3 changes: 1 addition & 2 deletions insta/tests/snapshots/test_basic__yaml_vector.snap
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
---
source: tests/test_basic.rs
source: insta/tests/test_basic.rs
expression: "vec![1, 2, 3]"
---
- 1
- 2
- 3

2 changes: 1 addition & 1 deletion insta/tests/snapshots/test_bugs__crlf.snap
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: tests/test_bugs.rs
source: insta/tests/test_bugs.rs
expression: "\"foo\\r\\nbar\\r\\nbaz\""
---
foo
Expand Down
3 changes: 1 addition & 2 deletions insta/tests/snapshots/test_bugs__trailing_crlf.snap
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
---
source: tests/test_bugs.rs
source: insta/tests/test_bugs.rs
expression: "\"foo\\r\\nbar\\r\\nbaz\\r\\n\""
---
foo
bar
baz

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: tests/test_inline.rs
source: insta/tests/test_inline.rs
expression: "\"Testing-thread-2\""
---
Testing-thread-2
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: tests/test_inline.rs
source: insta/tests/test_inline.rs
expression: "\"Testing-thread\""
---
Testing-thread
2 changes: 1 addition & 1 deletion insta/tests/snapshots/test_redaction__foo_bar.snap
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: tests/test_redaction.rs
source: insta/tests/test_redaction.rs
expression: "Selector::parse(\".foo.bar\").unwrap()"
---
Selector {
Expand Down
2 changes: 1 addition & 1 deletion insta/tests/snapshots/test_redaction__foo_bar_alt.snap
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: tests/test_redaction.rs
source: insta/tests/test_redaction.rs
expression: "Selector::parse(\".foo[\\\"bar\\\"]\").unwrap()"
---
Selector {
Expand Down
2 changes: 1 addition & 1 deletion insta/tests/snapshots/test_redaction__foo_bar_deep.snap
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: tests/test_redaction.rs
source: insta/tests/test_redaction.rs
expression: "Selector::parse(\".foo.bar.**\").unwrap()"
---
Selector {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: tests/test_redaction.rs
source: insta/tests/test_redaction.rs
expression: "Selector::parse(\".foo.bar[]\").unwrap()"
---
Selector {
Expand Down
2 changes: 1 addition & 1 deletion insta/tests/snapshots/test_redaction__foo_bar_range.snap
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: tests/test_redaction.rs
source: insta/tests/test_redaction.rs
expression: "Selector::parse(\".foo.bar[10:20]\").unwrap()"
---
Selector {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: tests/test_redaction.rs
source: insta/tests/test_redaction.rs
expression: "Selector::parse(\".foo.bar[10:]\").unwrap()"
---
Selector {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: tests/test_redaction.rs
source: insta/tests/test_redaction.rs
expression: "Selector::parse(\".foo.bar[:10]\").unwrap()"
---
Selector {
Expand Down
3 changes: 1 addition & 2 deletions insta/tests/snapshots/test_redaction__map_key_redaction.snap
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: tests/test_redaction.rs
source: insta/tests/test_redaction.rs
expression: foo_value
---
hm:
Expand All @@ -8,4 +8,3 @@ hm:
: 42
btm:
"[key]": 23

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: tests/test_redaction.rs
source: insta/tests/test_redaction.rs
expression: "&MyPoint { x: 1.0 / 3.0, y: 6.0 / 3.0 }"
---
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: tests/test_redaction.rs
source: insta/tests/test_redaction.rs
expression: "vec![checkout]"
---
- _id: "[checkout_id]"
Expand All @@ -8,4 +8,3 @@ expression: "vec![checkout]"
product_name: "[product_name]"
- _id: "[product_id]"
product_name: "[product_name]"

5 changes: 2 additions & 3 deletions insta/tests/snapshots/test_redaction__user.snap
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
---
source: tests/test_redaction.rs
expression: "&User {\n id: 23,\n username: \"john_doe\".to_string(),\n email: Email(\"[email protected]\".to_string()),\n extra: \"\".to_string(),\n }"
source: insta/tests/test_redaction.rs
expression: "&User {\n id: 11,\n username: \"john_doe\".to_string(),\n email: Email(\"[email protected]\".to_string()),\n extra: \"\".to_string(),\n }"
---
id: "[id]"
username: john_doe
email: john@example.com
extra: ""

2 changes: 1 addition & 1 deletion insta/tests/snapshots/test_redaction__user_json.snap
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: tests/test_redaction.rs
source: insta/tests/test_redaction.rs
expression: "&User {\n id: 9999,\n username: \"jason_doe\".to_string(),\n email: Email(\"[email protected]\".to_string()),\n extra: \"ssn goes here\".to_string(),\n }"
---
{
Expand Down
2 changes: 1 addition & 1 deletion insta/tests/snapshots/test_redaction__user_json_flags.snap
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: tests/test_redaction.rs
source: insta/tests/test_redaction.rs
expression: "&User {\n id: 122,\n username: \"jason_doe\".to_string(),\n flags: vec![\"zzz\".into(), \"foo\".into(), \"aha\".into(),\n \"is_admin\".into()].into_iter().collect(),\n }"
---
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: tests/test_redaction.rs
source: insta/tests/test_redaction.rs
expression: "&User {\n id: 122,\n username: \"jason_doe\".to_string(),\n flags: MySet(vec![\"zzz\".into(), \"foo\".into(), \"aha\".into(),\n \"is_admin\".into()].into_iter().collect()),\n }"
---
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: tests/test_redaction.rs
source: insta/tests/test_redaction.rs
expression: "&User {\n id: 122,\n username: \"jason_doe\".to_string(),\n email: Email(\"[email protected]\".to_string()),\n extra: \"ssn goes here\".to_string(),\n }"
---
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: tests/test_redaction.rs
source: insta/tests/test_redaction.rs
expression: "&User {\n id: 1234,\n username: \"jason_doe\".to_string(),\n email: Email(\"[email protected]\".to_string()),\n extra: \"extra here\".to_string(),\n }"
---
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: tests/test_redaction.rs
source: insta/tests/test_redaction.rs
expression: "&User {\n id: 11,\n username: \"john_doe\".to_string(),\n email: Email(\"[email protected]\".to_string()),\n extra: \"\".to_string(),\n }"
---
id: "[id]"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: tests/test_redaction.rs
source: insta/tests/test_redaction.rs
expression: "&User {\n id: 11,\n username: \"john_doe\".to_string(),\n email: Email(\"[email protected]\".to_string()),\n extra: \"\".to_string(),\n }"
---
id: "[id]"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: tests/test_redaction.rs
source: insta/tests/test_redaction.rs
expression: "&User {\n id: 9999,\n username: \"jason_doe\".to_string(),\n email: Email(\"[email protected]\".to_string()),\n extra: \"ssn goes here\".to_string(),\n }"
---
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: tests/test_redaction.rs
source: insta/tests/test_redaction.rs
expression: "&User {\n id: 975,\n username: \"jason_doe\".to_string(),\n email: Email(\"[email protected]\".to_string()),\n extra: \"ssn goes here\".to_string(),\n }"
---
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: tests/test_settings.rs
source: insta/tests/test_settings.rs
description: The snapshot is three integers
expression: "vec![1, 2, 3]"
---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: tests/test_settings.rs
source: insta/tests/test_settings.rs
description: The snapshot is four integers
expression: "vec![1, 2, 3, 4]"
info:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: tests/test_settings.rs
source: insta/tests/test_settings.rs
description: The snapshot is four integers
expression: "vec![1, 2, 3, 4]"
info:
Expand Down
Loading

0 comments on commit 0988509

Please sign in to comment.