Skip to content

Commit

Permalink
NFC: Comment on TestDirective and input.json
Browse files Browse the repository at this point in the history
  • Loading branch information
ksolana committed May 28, 2024
1 parent 430a477 commit 0be7349
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,8 @@ pub enum TestDirective {
Xfail(String), // The test is expected to fail with the `String` message. It is an error if test passes.
Abort(u64), // The test should abort.
Log(String), // Test should pass.
Input(Input),
Input2(Input2),
Input(Input), // Input file with program_id, accounts, instruction_data
Input2(Input2),// Input file with program_id, entry_fn. // TODO: Single input.json should be used.
UseStdlib, // Build and link the move stdlib as bytecode
}

Expand All @@ -170,6 +170,7 @@ pub struct Input {

#[derive(Serialize, Deserialize, Debug, Eq, PartialEq, Clone)]
pub struct Input2 {
// FIXME: We should have single input.json loader with appropriate discriminators.
pub program_id: String,
pub entry_fn: String,
}
Expand Down

0 comments on commit 0be7349

Please sign in to comment.