Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dotx/composite.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ func (s *Composite) ExportFile() error {
if s.kind != ExternalGraph {
return errors.New("ExportFile is only applicable to a ExternalGraph Composite")
}
return os.WriteFile(s.ExportFilename(), []byte(s.Graph.String()), os.ModePerm)
return os.WriteFile(s.ExportFilename(), []byte(s.Graph.String()), 0666)
}

// Export writes the DOT file for a Composite after building the content (child) graph using the build function.
Expand Down
6 changes: 3 additions & 3 deletions dotx/composite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func TestExampleSubsystemSameGraph(t *testing.T) {
sub3 := sub2.Node("subcomponent 3")
sub2.Input("in3", sub3)

os.WriteFile("TestExampleSubsystemSameGraph.dot", []byte(g.String()), os.ModePerm)
os.WriteFile("TestExampleSubsystemSameGraph.dot", []byte(g.String()), 0666)
}

func TestExampleSubsystemExternalGraph(t *testing.T) {
Expand Down Expand Up @@ -63,7 +63,7 @@ func TestExampleSubsystemExternalGraph(t *testing.T) {
})
})

os.WriteFile("TestExampleSubsystemExternalGraph.dot", []byte(g.String()), os.ModePerm)
os.WriteFile("TestExampleSubsystemExternalGraph.dot", []byte(g.String()), 0666)
}

func TestAttrOnSubsystem(t *testing.T) {
Expand All @@ -87,7 +87,7 @@ func TestCompositeWithUnusedIOSameGraph(t *testing.T) {
sub.Input("in", c1)
sub.Output("out", c1)

os.WriteFile("TestCompositeWithUnusedIOSameGraph.dot", []byte(g.String()), os.ModePerm)
os.WriteFile("TestCompositeWithUnusedIOSameGraph.dot", []byte(g.String()), 0666)
}

func TestConnectToComposites(t *testing.T) {
Expand Down
Loading