github.com/bananabytelabs/wazero@v0.0.0-20240105073314-54b22a776da8/internal/gojs/testdata/testfs/main.go (about)

     1  // Package testfs is an integration test of system calls mapped to the
     2  // JavaScript object "fs". e.g. `go.syscall/js.valueCall(fs.openDir...`
     3  package testfs
     4  
     5  import (
     6  	"log"
     7  	"os"
     8  
     9  	"github.com/bananabytelabs/wazero/internal/fstest"
    10  )
    11  
    12  func Main() {
    13  	if err := fstest.TestFS(os.DirFS("testfs")); err != nil {
    14  		log.Panicln(err)
    15  	}
    16  }