Skip to content

Commit

Permalink
add example to unit tests (#92)
Browse files Browse the repository at this point in the history
Signed-off-by: adisos <adisos@il.ibm.com>
  • Loading branch information
adisos authored Dec 17, 2024
1 parent 0c1b185 commit 4f62b00
Show file tree
Hide file tree
Showing 4 changed files with 28,651 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pkg/collector/data/examples.go
Original file line number Diff line number Diff line change
Expand Up @@ -281,10 +281,10 @@ func example3FromExample2() Example {
return res
}

// ExampleDumb
// ExampleDumbeldore
// Dumbledore1 can communicate to all
// Dumbledore2 can communicate to all but slytherin
var ExampleDumb = Example{
var ExampleDumbeldore = Example{
vms: []string{"Slytherin", "Hufflepuff", "Gryffindor", "Dumbledore1", "Dumbledore2"},
groups: map[string][]string{
"Slytherin": {"Slytherin"},
Expand Down
8 changes: 8 additions & 0 deletions pkg/collector/data/expected_output/ExampleDumbeldore.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
analyzed connectivity:
Dumbledore1 => Dumbledore2: All Connections
Dumbledore1 => Gryffindor: All Connections
Dumbledore1 => Hufflepuff: All Connections
Dumbledore1 => Slytherin: All Connections
Dumbledore2 => Dumbledore1: All Connections
Dumbledore2 => Gryffindor: All Connections
Dumbledore2 => Hufflepuff: All Connections
Loading

0 comments on commit 4f62b00

Please sign in to comment.