Skip to content

Commit

Permalink
add low utilization type test
Browse files Browse the repository at this point in the history
  • Loading branch information
severindellsperger committed Apr 12, 2024
1 parent fe135da commit 8399e79
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions pkg/types/types_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,13 @@ func TestIntentTypeToString(t *testing.T) {
},
want: "unspecified",
},
{
name: "IntentTypeLowUtilization",
args: args{
it: IntentTypeLowUtilization,
},
want: "low-utilization",
},
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
Expand Down Expand Up @@ -332,6 +339,14 @@ func TestParseIntentType(t *testing.T) {
want: IntentTypeUnspecified,
wantErr: true,
},
{
name: "IntentTypeLowUtilization",
args: args{
s: "low-utilization",
},
want: IntentTypeLowUtilization,
wantErr: false,
},
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
Expand Down

0 comments on commit 8399e79

Please sign in to comment.