Skip to content

Commit

Permalink
reformat comment
Browse files Browse the repository at this point in the history
  • Loading branch information
rhzs committed Aug 12, 2023
1 parent 08451cb commit 3993b50
Showing 1 changed file with 35 additions and 35 deletions.
70 changes: 35 additions & 35 deletions assertions/assertions.go
Original file line number Diff line number Diff line change
Expand Up @@ -970,13 +970,13 @@ func ShouldEqualTrimSpace(actual interface{}, expected ...interface{}) error {
// script: "echo {{.time}}"
// assertions:
// - result.systemout ShouldHappenBefore "{{.time_with_5s_after}}"
// - name: test assertion with humanize format
// steps:
// - type: exec
// script: "echo {{.venom.datetime}}"
// assertions:
// - "result.systemout ShouldHappenBefore tomorrow"
// - "result.systemout ShouldHappenBefore '5 minutes from now'"
// - name: test assertion with humanize format
// steps:
// - type: exec
// script: "echo {{.venom.datetime}}"
// assertions:
// - "result.systemout ShouldHappenBefore tomorrow"
// - "result.systemout ShouldHappenBefore '5 minutes from now'"
func ShouldHappenBefore(actual interface{}, expected ...interface{}) error {
if err := need(1, expected); err != nil {
return err
Expand Down Expand Up @@ -1014,13 +1014,13 @@ func ShouldHappenBefore(actual interface{}, expected ...interface{}) error {
// script: "echo {{.time}}"
// assertions:
// - result.systemout ShouldHappenOnOrBefore "{{.time_with_5s_after}}"
// - name: test assertion with humanize format
// steps:
// - type: exec
// script: "echo {{.venom.datetime}}"
// assertions:
// - "result.systemout ShouldHappenOnOrBefore tomorrow"
// - "result.systemout ShouldHappenOnOrBefore '5 minutes from now'"
// - name: test assertion with humanize format
// steps:
// - type: exec
// script: "echo {{.venom.datetime}}"
// assertions:
// - "result.systemout ShouldHappenOnOrBefore tomorrow"
// - "result.systemout ShouldHappenOnOrBefore '5 minutes from now'"
func ShouldHappenOnOrBefore(actual interface{}, expected ...interface{}) error {
if err := need(1, expected); err != nil {
return err
Expand Down Expand Up @@ -1057,13 +1057,13 @@ func ShouldHappenOnOrBefore(actual interface{}, expected ...interface{}) error {
// script: "echo {{.time}}"
// assertions:
// - result.systemout ShouldHappenAfter "{{.time_with_5s_before}}"
// - name: test assertion with humanize format
// steps:
// - type: exec
// script: "echo {{.venom.datetime}}"
// assertions:
// - "result.systemout ShouldHappenAfter yesterday"
// - "result.systemout ShouldHappenAfter '5 minutes ago'"
// - name: test assertion with humanize format
// steps:
// - type: exec
// script: "echo {{.venom.datetime}}"
// assertions:
// - "result.systemout ShouldHappenAfter yesterday"
// - "result.systemout ShouldHappenAfter '5 minutes ago'"
func ShouldHappenAfter(actual interface{}, expected ...interface{}) error {
if err := need(1, expected); err != nil {
return err
Expand Down Expand Up @@ -1100,13 +1100,13 @@ func ShouldHappenAfter(actual interface{}, expected ...interface{}) error {
// script: "echo {{.time}}"
// assertions:
// - result.systemout ShouldHappenOnOrAfter "{{.time_with_5s_before}}"
// - name: test assertion with humanize format
// steps:
// - type: exec
// script: "echo {{.venom.datetime}}"
// assertions:
// - "result.systemout ShouldHappenOnOrAfter yesterday"
// - "result.systemout ShouldHappenOnOrAfter '5 minutes ago'"
// - name: test assertion with humanize format
// steps:
// - type: exec
// script: "echo {{.venom.datetime}}"
// assertions:
// - "result.systemout ShouldHappenOnOrAfter yesterday"
// - "result.systemout ShouldHappenOnOrAfter '5 minutes ago'"
func ShouldHappenOnOrAfter(actual interface{}, expected ...interface{}) error {
if err := need(1, expected); err != nil {
return err
Expand Down Expand Up @@ -1144,13 +1144,13 @@ func ShouldHappenOnOrAfter(actual interface{}, expected ...interface{}) error {
// script: "echo {{.time}}"
// assertions:
// - result.systemout ShouldHappenBetween "{{.time_with_5s_before}}" "{{.time_with_5s_after}}"
// - name: test assertion with humanize format
// steps:
// - type: exec
// script: "echo {{.venom.datetime}}"
// assertions:
// - "result.systemout ShouldHappenBetween yesterday tomorrow"
// - "result.systemout ShouldHappenBetween '5 minutes ago' '5 minutes from now'"
// - name: test assertion with humanize format
// steps:
// - type: exec
// script: "echo {{.venom.datetime}}"
// assertions:
// - "result.systemout ShouldHappenBetween yesterday tomorrow"
// - "result.systemout ShouldHappenBetween '5 minutes ago' '5 minutes from now'"
func ShouldHappenBetween(actual interface{}, expected ...interface{}) error {
if err := need(2, expected); err != nil {
return err
Expand Down

0 comments on commit 3993b50

Please sign in to comment.