Skip to content

Commit

Permalink
Merge pull request #3 from eddie-knight/movementResult
Browse files Browse the repository at this point in the history
Added movement result struct
  • Loading branch information
eddie-knight authored Oct 18, 2023
2 parents 0e85bf9 + 77513c2 commit 7822d6f
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions raidengine/raidengine.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,23 @@ import (
"github.com/privateerproj/privateer-sdk/utils"
)

// StrikeResult is a struct that contains the results of a test
// MovementResult is a struct that contains the results of a single step within a strike
type MovementResult struct {
Passed bool // Passed is true if the test passed
Description string // Description is a human-readable description of the test
Message string // Message is a human-readable description of the test result
Function string // Function is the name of the code that was executed
Value interface{} // Value is the object that was returned during the movement
}

// StrikeResult is a struct that contains the results of a check for a single control
type StrikeResult struct {
Passed bool // Passed is true if the test passed
Description string // Description is a human-readable description of the test
Message string // Message is a human-readable description of the test result
DocsURL string // DocsURL is a link to the documentation for the test
ControlID string // ControlID is the ID of the control that the test is validating
Passed bool // Passed is true if the test passed
Description string // Description is a human-readable description of the test
Message string // Message is a human-readable description of the test result
DocsURL string // DocsURL is a link to the documentation for the test
ControlID string // ControlID is the ID of the control that the test is validating
Movements map[string]MovementResult // Movements is a list of functions that were executed during the test
}

// RaidResults is a struct that contains the results of all strikes, orgainzed by name
Expand Down

0 comments on commit 7822d6f

Please sign in to comment.