mirror of
https://github.com/Fishwaldo/huma.git
synced 2025-03-15 19:31:27 +00:00
21 lines
381 B
Go
21 lines
381 B
Go
package middleware
|
|
|
|
import (
|
|
"net/http"
|
|
"testing"
|
|
)
|
|
|
|
type fakeApp struct{}
|
|
|
|
func (a *fakeApp) Middleware(middlewares ...func(next http.Handler) http.Handler) {}
|
|
|
|
func (a *fakeApp) Flag(name string, short string, description string, defaultValue interface{}) {}
|
|
|
|
func (a *fakeApp) PreStart(f func()) {
|
|
f()
|
|
}
|
|
|
|
func TestDefaults(t *testing.T) {
|
|
app := &fakeApp{}
|
|
Defaults(app)
|
|
}
|