Skip to content

Commit

Permalink
add inbound test case
Browse files Browse the repository at this point in the history
  • Loading branch information
moukoublen committed Nov 17, 2024
1 parent d1cd790 commit 32633a9
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions inbound_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,19 @@ func TestInbound(t *testing.T) {
assertResponse: simpleTc.assertResponse,
expectedLogs: simpleTc.expectedLogs,
},
"simple Wrong Mode": {
initHTTPLogger: func(logger *slog.Logger) *HTTPLogger {
return NewHTTPLogger(
WithLogger(logger),
WithLogInLevel(slog.LevelInfo),
WithMode(Mode(100)),
)
},
srvHandler: simpleTc.srvHandler,
requestFn: simpleTc.requestFn,
assertResponse: simpleTc.assertResponse,
expectedLogs: simpleTc.expectedLogs,
},
}

for name, tc := range tests {
Expand Down

0 comments on commit 32633a9

Please sign in to comment.