github.com/alimy/mir/v4@v4.1.0/internal/generator/generator_test.go (about) 1 // Copyright 2020 Michael Li <alimy@gility.net>. All rights reserved. 2 // Use of this source code is governed by Apache License 2.0 that 3 // can be found in the LICENSE file. 4 5 package generator 6 7 import ( 8 "testing" 9 10 "github.com/alimy/mir/v4/core" 11 ) 12 13 func TestMirGenerator_Init(t *testing.T) { 14 g := &mirGenerator{name: core.GeneratorGin} 15 if err := g.Init(nil); err == nil { 16 t.Error("want an error but not") 17 } 18 }