Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redactions does not work with btree keys #192

Closed
danielgatis opened this issue Aug 25, 2021 · 0 comments · Fixed by #193
Closed

Redactions does not work with btree keys #192

danielgatis opened this issue Aug 25, 2021 · 0 comments · Fixed by #193

Comments

@danielgatis
Copy link

Description

redactions does not works for btree keys.

Reproduction steps

In test:

insta::assert_yaml_snapshot!(&book, {
    ".**.timestamp" => "[timestamp]"
});

result:

market: USD/BTC
bids:
  side: 1
  map: {}
  tree: {}
asks:
  side: 0
  map:
    1:
      id: 1
      trader_id: 1
      price: 500
      qty: 5
      timestamp: "[timestamp]"
      side: 0
  tree:
    ? price: 500
      timestamp: 1629899989141
      side: 0
    : id: 1
      trader_id: 1
      price: 500
      qty: 5
      timestamp: "[timestamp]"
      side: 0
seq: 1

Additional helpful information:

  • Version of insta: 1.7.2
  • Version of rustc: v1.56.0-nightly
  • Operating system and version: macOS 11.5.1

What did you expect

The timestamp in the btree key should be replaced.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant