Skip to content

Commit

Permalink
Add unit tests for signature generation
Browse files Browse the repository at this point in the history
  • Loading branch information
zivkovicmilos committed Sep 15, 2023
1 parent 53b66d1 commit f1b0dea
Show file tree
Hide file tree
Showing 6 changed files with 481 additions and 5 deletions.
4 changes: 2 additions & 2 deletions faucet.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"github.com/gnolang/faucet/config"
"github.com/gnolang/faucet/estimate"
"github.com/gnolang/faucet/log"
"github.com/gnolang/faucet/log/nul"
"github.com/gnolang/faucet/log/noop"
"github.com/go-chi/chi/v5"
"github.com/rs/cors"
"golang.org/x/sync/errgroup"
Expand Down Expand Up @@ -41,7 +41,7 @@ func NewFaucet(
f := &Faucet{
estimator: estimator,
client: client,
logger: nul.New(),
logger: noop.New(),
config: config.DefaultConfig(),
middlewares: nil, // no middlewares by default

Expand Down
37 changes: 35 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,46 @@ module github.com/gnolang/faucet
go 1.21

require (
github.com/gnolang/gno v0.0.0-20230914214026-ef6a55bf9db2
github.com/go-chi/chi/v5 v5.0.10
github.com/pelletier/go-toml v1.9.5
github.com/peterbourgon/ff/v3 v3.4.0
github.com/rs/cors v1.10.0
github.com/stretchr/testify v1.8.4
golang.org/x/sync v0.3.0
)

require (
github.com/gnolang/gno v0.0.0-20230914214026-ef6a55bf9db2 // indirect
github.com/pelletier/go-toml v1.9.5 // indirect
github.com/btcsuite/btcd v0.22.0-beta.0.20220111032746-97732e52810c // indirect
github.com/btcsuite/btcd/btcutil v1.0.0 // indirect
github.com/cespare/xxhash v1.1.0 // indirect
github.com/cespare/xxhash/v2 v2.1.1 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/dgraph-io/badger/v3 v3.2103.4 // indirect
github.com/dgraph-io/ristretto v0.1.1 // indirect
github.com/dustin/go-humanize v1.0.0 // indirect
github.com/gnolang/goleveldb v0.0.9 // indirect
github.com/gnolang/overflow v0.0.0-20170615021017-4d914c927216 // indirect
github.com/gogo/protobuf v1.3.2 // indirect
github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b // indirect
github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6 // indirect
github.com/golang/protobuf v1.5.3 // indirect
github.com/golang/snappy v0.0.4 // indirect
github.com/google/flatbuffers v1.12.1 // indirect
github.com/gorilla/websocket v1.5.0 // indirect
github.com/jmhodges/levigo v1.0.0 // indirect
github.com/klauspost/compress v1.12.3 // indirect
github.com/libp2p/go-buffer-pool v0.1.0 // indirect
github.com/linxGnu/grocksdb v1.8.4 // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/tecbot/gorocksdb v0.0.0-20191217155057-f0fad39f321c // indirect
go.etcd.io/bbolt v1.3.7 // indirect
go.opencensus.io v0.22.5 // indirect
golang.org/x/crypto v0.13.0 // indirect
golang.org/x/mod v0.12.0 // indirect
golang.org/x/net v0.15.0 // indirect
golang.org/x/sys v0.12.0 // indirect
google.golang.org/protobuf v1.31.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
Loading

0 comments on commit f1b0dea

Please sign in to comment.