Skip to content

Commit

Permalink
change diff matrix comparsion comments
Browse files Browse the repository at this point in the history
  • Loading branch information
shirmoran committed Jul 31, 2024
1 parent 4883a43 commit 2ff39b1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,13 +82,13 @@ func main() {
if err != nil {
panic(fmt.Sprintf("Error while writing ss matrix to file :%v", err))
}
// generate the diff matrix between the ss and the enpointslice matrix
// generate the diff matrix between the enpointslice and the ss matrix
diff, err := commatrix.GenerateMatrixDiff(*mat, *ssMat)
if err != nil {
panic(fmt.Sprintf("Error while writing matrix diff file :%v", err))
}

// write the diff matrix between the ss and the enpointslice matrix to a csv file
// write the diff matrix between the enpointslice and the ss matrix to a csv file
err = os.WriteFile(filepath.Join(destDir, "matrix-diff-ss"), []byte(diff), 0644)
if err != nil {
panic(fmt.Sprintf("Error writing the diff matrix :%v", err))
Expand Down
2 changes: 1 addition & 1 deletion commatrix/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ func writeMatrixToFile(matrix types.ComMatrix, fileName, format string, printFn
return os.WriteFile(comMatrixFileName, res, 0644)
}

// GenerateMatrixDiff generates a new matrix demonstrating the diff between mat2 to mat1.
// GenerateMatrixDiff generates a new matrix demonstrating the diff between mat1 to mat2.
func GenerateMatrixDiff(mat1 types.ComMatrix, mat2 types.ComMatrix) (string, error) {
colNames := getComMatrixColTagsByFormat(types.FormatCSV)
if colNames == "" {
Expand Down

0 comments on commit 2ff39b1

Please sign in to comment.