Skip to content

Commit 5ef81d8

Browse files
committed
Add diff test documentation
1 parent 02f7b9a commit 5ef81d8

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

crate/tests/diff.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
// smoelius: The purpose of this test is to check the differences between each lint's ui tests and
2+
// their corresponding subdirectory of:
3+
// https://github.com/coral-xyz/sealevel-attacks/tree/master/programs
4+
// Ideally, those changes should be small.
5+
// The changes to a lint's ui tests are stored in a file in the `diffs` subdirectory. If any
6+
// lint's actual changes differ from the changes reflected in the lint's diff file, the test fails.
7+
18
use assert_cmd::prelude::*;
29
use predicates::prelude::*;
310
use std::{fs::read_to_string, path::Path};

0 commit comments

Comments
 (0)