Skip to content

Commit

Permalink
Update debricked-call-graph file names
Browse files Browse the repository at this point in the history
  • Loading branch information
emilwareus authored and filip-debricked committed Apr 4, 2024
1 parent ad4107c commit 4d6a800
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,5 @@ test/resolve/testdata/gradle/*/**
**.gradle-init-script.debricked.groovy
test/resolve/testdata/gradle/gradle.debricked.lock
/mvnproj/target
debricked-call-graph-golang
debricked-call-graph.*
internal/scan/testdata/npm/result.json
4 changes: 2 additions & 2 deletions internal/callgraph/language/golang/callgraph_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ func TestCleanSymbol(t *testing.T) {

func TestCallGraphGeneration(t *testing.T) {
rootFileDir := filepath.Dir("testdata/fixture/app.go")
outputName := "debricked-call-graph-golang-test"
outputName := "debricked-call-graph.golang-test"

defer func() {
err := os.Remove("testdata/fixture/debricked-call-graph-golang-test")
err := os.Remove("testdata/fixture/debricked-call-graph.golang-test")
if err != nil {
fmt.Println(err)
}
Expand Down
2 changes: 1 addition & 1 deletion internal/callgraph/language/golang/job.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
)

const (
outputName = "debricked-call-graph-golang"
outputName = "debricked-call-graph.golang"
)

type Job struct {
Expand Down
4 changes: 2 additions & 2 deletions internal/callgraph/language/golang/job_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func TestNewJob(t *testing.T) {
func TestRun(t *testing.T) {

defer func() {
err := os.Remove("testdata/fixture/debricked-call-graph-golang")
err := os.Remove("testdata/fixture/debricked-call-graph.golang")
if err != nil {
fmt.Println(err)
}
Expand All @@ -59,7 +59,7 @@ func TestRun(t *testing.T) {
fmt.Println(j.Errors().GetAll())
assert.False(t, j.Errors().HasError())

_, err := os.Stat("testdata/fixture/debricked-call-graph-golang")
_, err := os.Stat("testdata/fixture/debricked-call-graph.golang")
assert.False(t, os.IsNotExist(err))
}

Expand Down
2 changes: 1 addition & 1 deletion internal/callgraph/language/java11/job.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const (
maven = "maven"
gradle = "gradle"
dependencyDir = ".debrickedTmpFolder"
outputName = "debricked-call-graph-java"
outputName = "debricked-call-graph.java"
)

type Job struct {
Expand Down
4 changes: 2 additions & 2 deletions test/callgraph/maven_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ func TestGenerateCallgraph(t *testing.T) {
mavenProjectPath := filepath.Join("testdata", "mvnproj-build")
tmpFolder := filepath.Join(mavenProjectPath, ".debrickedTmpFolder")
targetFolder := filepath.Join(mavenProjectPath, "target")
callgraphFile := filepath.Join(mavenProjectPath, "debricked-call-graph-java")
callgraphFile := filepath.Join(mavenProjectPath, "debricked-call-graph.java")

assert.NoDirExists(t, tmpFolder)
assert.NoDirExists(t, targetFolder)
Expand Down Expand Up @@ -43,7 +43,7 @@ func TestGenerateCallgraphNoBuild(t *testing.T) {
mavenProjectPath := filepath.Join("testdata", "mvnproj-no-build")
tmpFolder := filepath.Join(mavenProjectPath, ".debrickedTmpFolder")
targetFolder := filepath.Join(mavenProjectPath, "target")
callgraphFile := filepath.Join(mavenProjectPath, "debricked-call-graph-java")
callgraphFile := filepath.Join(mavenProjectPath, "debricked-call-graph.java")

assert.NoFileExists(t, callgraphFile)
tmpFolderInfoBefore, tmpErr := os.Stat(tmpFolder)
Expand Down

0 comments on commit 4d6a800

Please sign in to comment.