github.com/tiagovtristao/plz@v13.4.0+incompatible/src/ide/intellij/intellij_test.go (about) 1 package intellij 2 3 import ( 4 "strings" 5 "testing" 6 7 "github.com/stretchr/testify/assert" 8 9 "github.com/thought-machine/please/src/core" 10 ) 11 12 func TestProjectLocation(t *testing.T) { 13 assert.True(t, strings.HasSuffix(projectLocation(), "plz-out/intellij/.idea")) 14 } 15 16 func TestModuleFileLocation(t *testing.T) { 17 label := core.BuildLabel{ 18 PackageName: "some/package", Name: "target", Subrepo: "", 19 } 20 21 assert.True(t, strings.HasSuffix(moduleFileLocation(label), "plz-out/intellij/some/package/some_package_target.iml")) 22 }