Skip to content

Commit

Permalink
cassette: add helper method Interaction.WasReplayed()
Browse files Browse the repository at this point in the history
  • Loading branch information
dnaeon committed Mar 6, 2024
1 parent 89d872b commit 7577423
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cassette/cassette.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,12 @@ type Interaction struct {
replayed bool `yaml:"-"`
}

// WasReplayed returns a boolean indicating whether the given interaction was
// already replayed.
func (i *Interaction) WasReplayed() bool {
return i.replayed
}

// GetHTTPRequest converts the recorded interaction request to
// http.Request instance
func (i *Interaction) GetHTTPRequest() (*http.Request, error) {
Expand Down

0 comments on commit 7577423

Please sign in to comment.