Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberhorsey committed May 25, 2023
1 parent 35a6633 commit bec7d44
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions packages/eventindexer/http/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,25 @@ func Test_NewServer(t *testing.T) {
Echo: echo.New(),
EventRepo: &repo.EventRepository{},
CorsOrigins: make([]string, 0),
StatRepo: &repo.StatRepository{},
},
nil,
},
{
"noStatRepo",
NewServerOpts{
Echo: echo.New(),
EventRepo: &repo.EventRepository{},
CorsOrigins: make([]string, 0),
},
eventindexer.ErrNoStatRepository,
},
{
"noEventRepo",
NewServerOpts{
Echo: echo.New(),
CorsOrigins: make([]string, 0),
StatRepo: &repo.StatRepository{},
},
eventindexer.ErrNoEventRepository,
},
Expand All @@ -58,6 +69,7 @@ func Test_NewServer(t *testing.T) {
NewServerOpts{
Echo: echo.New(),
EventRepo: &repo.EventRepository{},
StatRepo: &repo.StatRepository{},
},
eventindexer.ErrNoCORSOrigins,
},
Expand All @@ -66,6 +78,7 @@ func Test_NewServer(t *testing.T) {
NewServerOpts{
EventRepo: &repo.EventRepository{},
CorsOrigins: make([]string, 0),
StatRepo: &repo.StatRepository{},
},
ErrNoHTTPFramework,
},
Expand Down

0 comments on commit bec7d44

Please sign in to comment.