Debian Codegraph @

matchers/be_above_test.go

raw symbols SCIP
1 package matchers_testscip-go gomod github.com/poy/onpar . `github.com/poy/onpar/matchers_test`/
2
3 import (
4 "reflectscip-go gomod github.com/golang/go/src go1.21.4 reflect/"
5 "testingscip-go gomod github.com/golang/go/src go1.21.4 testing/"
6
7 "github.com/poy/onpar/matchersscip-go gomod github.com/poy/onpar . `github.com/poy/onpar/matchers`/"
8 )
9
10 func TestAbovescip-go gomod github.com/poy/onpar . `github.com/poy/onpar/matchers_test`/TestAbove().(t *testingscip-go gomod github.com/golang/go/src go1.21.4 testing/.Tscip-go gomod github.com/golang/go/src go1.21.4 testing/T#) {
11 t.Parallelscip-go gomod github.com/golang/go/src go1.21.4 testing/T#Parallel().()
12
13 m := matchersscip-go gomod github.com/poy/onpar . `github.com/poy/onpar/matchers`/.BeAbovescip-go gomod github.com/poy/onpar . `github.com/poy/onpar/matchers`/BeAbove().(101)
14
15 _, err := m.Matchscip-go gomod github.com/poy/onpar . `github.com/poy/onpar/matchers`/BeAboveMatcher#Match().(101.0)
16 if err == nil {
17 t.Errorscip-go gomod github.com/golang/go/src go1.21.4 testing/common#Error().("expected err to not be nil")
18 }
19
20 _, err = m.Matchscip-go gomod github.com/poy/onpar . `github.com/poy/onpar/matchers`/BeAboveMatcher#Match().(99.0)
21 if err == nil {
22 t.Errorscip-go gomod github.com/golang/go/src go1.21.4 testing/common#Error().("expected err to not be nil")
23 }
24
25 _, err = m.Matchscip-go gomod github.com/poy/onpar . `github.com/poy/onpar/matchers`/BeAboveMatcher#Match().(int(99))
26 if err == nil {
27 t.Errorscip-go gomod github.com/golang/go/src go1.21.4 testing/common#Error().("expected err to not be nil")
28 }
29
30 v, err := m.Matchscip-go gomod github.com/poy/onpar . `github.com/poy/onpar/matchers`/BeAboveMatcher#Match().(103.0)
31 if err != nil {
32 t.Errorscip-go gomod github.com/golang/go/src go1.21.4 testing/common#Error().("expected err to be nil")
33 }
34
35 if !reflectscip-go gomod github.com/golang/go/src go1.21.4 reflect/.DeepEqualscip-go gomod github.com/golang/go/src go1.21.4 reflect/DeepEqual().(v, 103.0) {
36 t.Errorfscip-go gomod github.com/golang/go/src go1.21.4 testing/common#Errorf().("expected %v to equal %v", v, 103.0)
37 }
38
39 v, err = m.Matchscip-go gomod github.com/poy/onpar . `github.com/poy/onpar/matchers`/BeAboveMatcher#Match().(int(103))
40 if err != nil {
41 t.Errorscip-go gomod github.com/golang/go/src go1.21.4 testing/common#Error().("expected err to be nil")
42 }
43
44 _, err = m.Matchscip-go gomod github.com/poy/onpar . `github.com/poy/onpar/matchers`/BeAboveMatcher#Match().("invalid")
45 if err == nil {
46 t.Errorscip-go gomod github.com/golang/go/src go1.21.4 testing/common#Error().("expected err to not be nil")
47 }
48 }