test(integration): initial version of integration tests manager

This commit is contained in:
Alexandre Pujol 2023-05-06 13:23:16 +01:00
parent 913ac3131c
commit 298360fff1
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
7 changed files with 575 additions and 2 deletions

View file

@ -93,6 +93,15 @@ func TestWarning(t *testing.T) {
}
}
func TestError(t *testing.T) {
msg := "Error message"
wantN := 30
gotN := Error(msg)
if gotN != wantN {
t.Errorf("Error() = %v, want %v", gotN, wantN)
}
}
func TestFatalf(t *testing.T) {
msg := "Error message"
want := "\033[1;31m ✗ Error: \033[0mError message\n"