Skip to content

Commit

Permalink
add negative tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bsamuels453 committed Jun 20, 2024
1 parent cde90c8 commit 104a852
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
4 changes: 4 additions & 0 deletions go/eth-rpc-tracetransaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,8 @@ func Test() {
// ruleid: eth-rpc-tracetransaction
data, err := client.TraceChain(ctx, 5, nil)

// ok: eth-rpc-tracetransaction
data, err := client.TraceSomething(ctx, 5, nil)
// ok: eth-rpc-tracetransaction
data, err := client.TraceTransaction(ctx, "hash")
}
7 changes: 7 additions & 0 deletions go/eth-txreceipt-status-negative.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package main


func Test() {
// ok: eth-txreceipt-status
a := debug.Status
}

0 comments on commit 104a852

Please sign in to comment.