Introduce Stream - experimental API for low-level access to VPP API
[govpp.git] / api / errors_test.go
1 package api
2
3 import (
4         "testing"
5
6         . "github.com/onsi/gomega"
7 )
8
9 func TestUnspecified(t *testing.T) {
10         RegisterTestingT(t)
11
12         var err error = VPPApiError(-1)
13         errstr := err.Error()
14         Expect(errstr).Should(BeEquivalentTo("VPPApiError: Unspecified Error (-1)"))
15 }
16
17 func TestUnknown(t *testing.T) {
18         RegisterTestingT(t)
19
20         var err error = VPPApiError(-999)
21         errstr := err.Error()
22         Expect(errstr).Should(BeEquivalentTo("VPPApiError: -999"))
23 }