Skip to content

Commit

Permalink
Regenerate all snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
mitsuhiko committed Jan 28, 2022
1 parent f0717da commit e8f3f27
Show file tree
Hide file tree
Showing 52 changed files with 58 additions and 10 deletions.
1 change: 1 addition & 0 deletions src/snapshots/insta__test__embedded.snap
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
source: src/test.rs
assertion_line: 3
expression: "\"Just a string\""
---
Just a string
2 changes: 2 additions & 0 deletions tests/snapshots/snapshot_no_module_prepending.snap
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
---
source: tests/test_settings.rs
assertion_line: 74
expression: "vec![1, 2, 3]"
---
- 1
- 2
- 3

1 change: 1 addition & 0 deletions tests/snapshots/test_basic__debug_vector.snap
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
source: tests/test_basic.rs
assertion_line: 8
expression: "vec![1, 2, 3]"
---
[
Expand Down
1 change: 1 addition & 0 deletions tests/snapshots/test_basic__display.snap
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
source: tests/test_basic.rs
assertion_line: 69
expression: td
---
TestDisplay struct
1 change: 1 addition & 0 deletions tests/snapshots/test_basic__json_vector.snap
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
source: tests/test_basic.rs
assertion_line: 41
expression: "vec![1, 2, 3]"
---
[
Expand Down
1 change: 1 addition & 0 deletions tests/snapshots/test_basic__nested__nested_module.snap
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
source: tests/test_basic.rs
assertion_line: 54
expression: "\"aoeu\""
---
aoeu
1 change: 1 addition & 0 deletions tests/snapshots/test_basic__unnamed_debug_vector-2.snap
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
source: tests/test_basic.rs
assertion_line: 14
expression: "vec![1, 2, 3, 4]"
---
[
Expand Down
1 change: 1 addition & 0 deletions tests/snapshots/test_basic__unnamed_debug_vector-3.snap
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
source: tests/test_basic.rs
assertion_line: 15
expression: "vec![1, 2, 3, 4, 5]"
---
[
Expand Down
1 change: 1 addition & 0 deletions tests/snapshots/test_basic__unnamed_debug_vector.snap
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
source: tests/test_basic.rs
assertion_line: 13
expression: "vec![1, 2, 3]"
---
[
Expand Down
1 change: 1 addition & 0 deletions tests/snapshots/test_basic__unnamed_display-2.snap
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
source: tests/test_basic.rs
assertion_line: 76
expression: "\"whatever\""
---
whatever
1 change: 1 addition & 0 deletions tests/snapshots/test_basic__unnamed_display.snap
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
source: tests/test_basic.rs
assertion_line: 75
expression: td
---
TestDisplay struct
1 change: 1 addition & 0 deletions tests/snapshots/test_basic__unnamed_json_vector-2.snap
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
source: tests/test_basic.rs
assertion_line: 47
expression: "vec![1, 2, 3, 4]"
---
[
Expand Down
1 change: 1 addition & 0 deletions tests/snapshots/test_basic__unnamed_json_vector-3.snap
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
source: tests/test_basic.rs
assertion_line: 48
expression: "vec![1, 2, 3, 4, 5]"
---
[
Expand Down
1 change: 1 addition & 0 deletions tests/snapshots/test_basic__unnamed_json_vector.snap
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
source: tests/test_basic.rs
assertion_line: 46
expression: "vec![1, 2, 3]"
---
[
Expand Down
1 change: 0 additions & 1 deletion tests/snapshots/test_basic__unnamed_nested_closure.snap
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
source: tests/test_basic.rs
assertion_line: 22
expression: "vec![1, 2, 3]"

---
[
1,
Expand Down
2 changes: 2 additions & 0 deletions tests/snapshots/test_basic__unnamed_yaml_vector-2.snap
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
---
source: tests/test_basic.rs
assertion_line: 35
expression: "vec![1, 2, 3, 4]"
---
- 1
- 2
- 3
- 4

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

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

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

2 changes: 1 addition & 1 deletion tests/snapshots/test_bugs__crlf.snap
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
source: tests/test_bugs.rs
assertion_line: 3
expression: "\"foo\\r\\nbar\\r\\nbaz\""

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

---
foo
bar
Expand Down
1 change: 1 addition & 0 deletions tests/snapshots/[email protected]
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
source: tests/test_glob.rs
assertion_line: 7
expression: "&contents"
input_file: tests/inputs/goodbye.txt
---
Expand Down
1 change: 1 addition & 0 deletions tests/snapshots/[email protected]
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
source: tests/test_glob.rs
assertion_line: 7
expression: "&contents"
input_file: tests/inputs/hello.txt
---
Expand Down
1 change: 1 addition & 0 deletions tests/snapshots/[email protected]
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
source: tests/test_glob.rs
assertion_line: 15
expression: "&contents"
input_file: tests/inputs/goodbye.txt
---
Expand Down
1 change: 1 addition & 0 deletions tests/snapshots/[email protected]
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
source: tests/test_glob.rs
assertion_line: 15
expression: "&contents"
input_file: tests/inputs/hello.txt
---
Expand Down
1 change: 1 addition & 0 deletions tests/snapshots/test_inline__unnamed_single_line-2.snap
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
source: tests/test_inline.rs
assertion_line: 31
expression: "\"Testing-2\""
---
Testing-2
1 change: 1 addition & 0 deletions tests/snapshots/test_inline__unnamed_single_line.snap
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
source: tests/test_inline.rs
assertion_line: 30
expression: "\"Testing\""
---
Testing
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---
source: tests/test_inline.rs
assertion_line: 41
assertion_line: 43
expression: "\"Testing-thread-2\""

---
Testing-thread-2
3 changes: 1 addition & 2 deletions tests/snapshots/test_inline__unnamed_thread_single_line.snap
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---
source: tests/test_inline.rs
assertion_line: 40
assertion_line: 42
expression: "\"Testing-thread\""

---
Testing-thread
1 change: 1 addition & 0 deletions tests/snapshots/test_redaction__foo_bar.snap
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
source: tests/test_redaction.rs
assertion_line: 22
expression: "Selector::parse(\".foo.bar\").unwrap()"
---
Selector {
Expand Down
1 change: 1 addition & 0 deletions tests/snapshots/test_redaction__foo_bar_alt.snap
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
source: tests/test_redaction.rs
assertion_line: 23
expression: "Selector::parse(\".foo[\\\"bar\\\"]\").unwrap()"
---
Selector {
Expand Down
1 change: 1 addition & 0 deletions tests/snapshots/test_redaction__foo_bar_deep.snap
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
source: tests/test_redaction.rs
assertion_line: 28
expression: "Selector::parse(\".foo.bar.**\").unwrap()"
---
Selector {
Expand Down
1 change: 1 addition & 0 deletions tests/snapshots/test_redaction__foo_bar_full_range.snap
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
source: tests/test_redaction.rs
assertion_line: 24
expression: "Selector::parse(\".foo.bar[]\").unwrap()"
---
Selector {
Expand Down
1 change: 1 addition & 0 deletions tests/snapshots/test_redaction__foo_bar_range.snap
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
source: tests/test_redaction.rs
assertion_line: 27
expression: "Selector::parse(\".foo.bar[10:20]\").unwrap()"
---
Selector {
Expand Down
1 change: 1 addition & 0 deletions tests/snapshots/test_redaction__foo_bar_range_from.snap
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
source: tests/test_redaction.rs
assertion_line: 26
expression: "Selector::parse(\".foo.bar[10:]\").unwrap()"
---
Selector {
Expand Down
1 change: 1 addition & 0 deletions tests/snapshots/test_redaction__foo_bar_range_to.snap
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
source: tests/test_redaction.rs
assertion_line: 25
expression: "Selector::parse(\".foo.bar[:10]\").unwrap()"
---
Selector {
Expand Down
2 changes: 2 additions & 0 deletions tests/snapshots/test_redaction__map_key_redaction.snap
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
source: tests/test_redaction.rs
assertion_line: 340
expression: foo
---
hm:
Expand All @@ -8,3 +9,4 @@ hm:
: 42
btm:
"[key]": 23

2 changes: 2 additions & 0 deletions tests/snapshots/test_redaction__struct_array_redaction.snap
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
source: tests/test_redaction.rs
assertion_line: 307
expression: "vec![checkout]"
---
- _id: "[checkout_id]"
Expand All @@ -8,3 +9,4 @@ expression: "vec![checkout]"
product_name: "[product_name]"
- _id: "[product_id]"
product_name: "[product_name]"

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

2 changes: 1 addition & 1 deletion tests/snapshots/test_redaction__user_csv.snap
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
source: tests/test_redaction.rs
assertion_line: 85
expression: "&User{id: 44,\n username: \"julius_csv\".to_string(),\n email: Email(\"[email protected]\".to_string()),\n extra: \"\".to_string(),}"
---
id,username,email,extra
[id],julius_csv,julius@example.com,

1 change: 1 addition & 0 deletions tests/snapshots/test_redaction__user_json.snap
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
source: tests/test_redaction.rs
assertion_line: 123
expression: "&User{id: 9999,\n username: \"jason_doe\".to_string(),\n email: Email(\"[email protected]\".to_string()),\n extra: \"ssn goes here\".to_string(),}"
---
{
Expand Down
1 change: 0 additions & 1 deletion tests/snapshots/test_redaction__user_json_flags.snap
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
source: tests/test_redaction.rs
assertion_line: 359
expression: "&User{id: 122,\n username: \"jason_doe\".to_string(),\n flags:\n vec![\"zzz\".into(), \"foo\".into(), \"aha\".into(),\n \"is_admin\".into()].into_iter().collect(),}"

---
{
"id": "[id]",
Expand Down
1 change: 0 additions & 1 deletion tests/snapshots/test_redaction__user_json_flags_alt.snap
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
source: tests/test_redaction.rs
assertion_line: 384
expression: "&User{id: 122,\n username: \"jason_doe\".to_string(),\n flags:\n MySet(vec![\"zzz\".into(), \"foo\".into(), \"aha\".into(),\n \"is_admin\".into()].into_iter().collect()),}"

---
{
"flags": [
Expand Down
1 change: 1 addition & 0 deletions tests/snapshots/test_redaction__user_json_settings.snap
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
source: tests/test_redaction.rs
assertion_line: 140
expression: "&User{id: 122,\n username: \"jason_doe\".to_string(),\n email: Email(\"[email protected]\".to_string()),\n extra: \"ssn goes here\".to_string(),}"
---
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
source: tests/test_redaction.rs
assertion_line: 161
expression: "&User{id: 1234,\n username: \"jason_doe\".to_string(),\n email: Email(\"[email protected]\".to_string()),\n extra: \"extra here\".to_string(),}"
---
{
Expand Down
1 change: 1 addition & 0 deletions tests/snapshots/test_redaction__user_ron.snap
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
source: tests/test_redaction.rs
assertion_line: 98
expression: "&User{id: 53,\n username: \"john_ron\".to_string(),\n email: Email(\"[email protected]\".to_string()),\n extra: \"\".to_string(),}"
---
User(
Expand Down
1 change: 1 addition & 0 deletions tests/snapshots/test_redaction__user_toml.snap
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
source: tests/test_redaction.rs
assertion_line: 111
expression: "&User{id: 53,\n username: \"john_ron\".to_string(),\n email: Email(\"[email protected]\".to_string()),\n extra: \"\".to_string(),}"
---
id = '[id]'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
source: tests/test_redaction.rs
assertion_line: 179
expression: "&User{id: 975,\n username: \"jason_doe\".to_string(),\n email: Email(\"[email protected]\".to_string()),\n extra: \"ssn goes here\".to_string(),}"
---
{
Expand Down
1 change: 1 addition & 0 deletions tests/snapshots/[email protected]
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
source: tests/test_suffixes.rs
assertion_line: 5
expression: "&value"
---
1
1 change: 1 addition & 0 deletions tests/snapshots/[email protected]
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
source: tests/test_suffixes.rs
assertion_line: 5
expression: "&value"
---
2
Loading

0 comments on commit e8f3f27

Please sign in to comment.