github.com/machinefi/w3bstream@v1.6.5-rc9.0.20240426031326-b8c7c4876e72/pkg/depends/kit/statusxgen/generator_test.go (about)

     1  package statusxgen_test
     2  
     3  import (
     4  	"os"
     5  	"path/filepath"
     6  	"testing"
     7  
     8  	"github.com/machinefi/w3bstream/pkg/depends/kit/statusxgen"
     9  	"github.com/machinefi/w3bstream/pkg/depends/x/pkgx"
    10  )
    11  
    12  func TestGenerator(t *testing.T) {
    13  	cwd, _ := os.Getwd()
    14  	pkg, _ := pkgx.LoadFrom(filepath.Join(cwd, "./__examples__"))
    15  
    16  	g := statusxgen.New(pkg)
    17  
    18  	g.Scan("StatusError")
    19  	g.Output(cwd)
    20  }