Files

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)
})
}