src.elv.sh@v0.21.0-dev.0.20240515223629-06979efb9a2a/pkg/mods/path/path_test.go (about)

     1  package path_test
     2  
     3  import (
     4  	"embed"
     5  	"testing"
     6  
     7  	"src.elv.sh/pkg/eval/evaltest"
     8  	"src.elv.sh/pkg/testutil"
     9  )
    10  
    11  //go:embed *.elvts
    12  var transcripts embed.FS
    13  
    14  func TestTranscripts(t *testing.T) {
    15  	evaltest.TestTranscriptsInFS(t, transcripts,
    16  		"in-temp-dir-with-d-f", func(t *testing.T) {
    17  			testutil.InTempDir(t)
    18  			testutil.ApplyDir(testutil.Dir{
    19  				"d": testutil.Dir{
    20  					"f": "",
    21  				},
    22  			})
    23  		},
    24  	)
    25  }