mirror of
https://github.com/authelia/authelia.git
synced 2026-10-28 09:34:52 +08:00
24 lines
370 B
Go
24 lines
370 B
Go
// SPDX-FileCopyrightText: 2026 Authelia
|
|
//
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
package embed
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestShouldPanicNilCtx(t *testing.T) {
|
|
assert.Panics(t, func() {
|
|
_ = ProvidersStartupCheck(nil, false)
|
|
})
|
|
|
|
ctx := &ctxEmbed{}
|
|
|
|
assert.Panics(t, func() {
|
|
_ = ProvidersStartupCheck(ctx, false)
|
|
})
|
|
}
|