Skip to content

Commit

Permalink
unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fanhousanbu committed Mar 5, 2024
1 parent b0ab816 commit e872f0c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,16 @@ package operator
import (
"AAStarCommunity/EthPaymaster_BackService/common/model"
"fmt"
"github.com/stretchr/testify/assert"

"testing"
)

func TestTryPayUserOpExecute(t *testing.T) {
request := getMockTryPayUserOpRequest()
result, err := TryPayUserOpExecute(&request)
if err != nil {
t.Errorf("Error: %v", err)
}
assert.NoError(t, err)
fmt.Printf("Result: %v", result)

}

func getMockTryPayUserOpRequest() model.TryPayUserOpRequest {
Expand Down

0 comments on commit e872f0c

Please sign in to comment.