summaryrefslogtreecommitdiff
path: root/experimental/embed/embed_test.go
blob: c20e2cb77e9e1d80f4018822f9db0c68a7228645 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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)
	})
}