Skip to content

Commit

Permalink
Add more comments for testing
Browse files Browse the repository at this point in the history
Signed-off-by: Prasad Chandrasekaran <[email protected]>
  • Loading branch information
pchan committed May 30, 2023
1 parent 8cc349d commit df0637a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions runtime/termscounter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import (
"testing"
)

// This variable mimics the code generated by gofail code package.
// This works in tandem with exampleFunc function.
var __fp_ExampleString *runtime.Failpoint

// check if failpoint is initialized as gofail
Expand Down Expand Up @@ -134,6 +136,7 @@ func TestEnablingNewTermResetsCount(t *testing.T) {

}

// This function mimics a customized code that is generated by gofail code package.
func exampleFunc() string {
if vExampleString, __fpErr := __fp_ExampleString.Acquire(); __fpErr == nil { //nolint:stylecheck
ExampleString, __fpTypeOK := vExampleString.(string) //nolint:stylecheck
Expand Down

0 comments on commit df0637a

Please sign in to comment.