Skip to content

Commit

Permalink
LoadTest.Status String implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
Jahaja committed Sep 19, 2020
1 parent 758c946 commit 52262b1
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 22 deletions.
44 changes: 22 additions & 22 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions loadtest.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@ func (s StatusType) MarshalJSON() ([]byte, error) {
return []byte(fmt.Sprintf(`"%s"`, statusTypes[s])), nil
}

func (s StatusType) String() string {
return statusTypes[s]
}

const (
StatusStopped StatusType = iota
StatusSpawning
Expand Down

0 comments on commit 52262b1

Please sign in to comment.