cuelang.org/go@v0.10.1/internal/cuedebug/debug_test.go (about) 1 package cuedebug 2 3 import ( 4 "testing" 5 6 "github.com/go-quicktest/qt" 7 ) 8 9 func TestInit(t *testing.T) { 10 // This is just a smoke test to make sure it's all wired up OK. 11 t.Setenv("CUE_DEBUG", "http") 12 err := Init() 13 qt.Assert(t, qt.IsNil(err)) 14 qt.Assert(t, qt.IsTrue(Flags.HTTP)) 15 }