Debian Codegraph @

qrcode/detector/finder_pattern_info_test.go

raw symbols SCIP
1 package detectorscip-go gomod github.com/makiuchi-d/gozxing . `github.com/makiuchi-d/gozxing/qrcode/detector`/
2
3 import (
4 "testingscip-go gomod github.com/golang/go/src go1.17 testing/"
5 )
6
7 func TestFinderPatternInfoscip-go gomod github.com/makiuchi-d/gozxing . `github.com/makiuchi-d/gozxing/qrcode/detector`/TestFinderPatternInfo().(t *testingscip-go gomod github.com/golang/go/src go1.17 testing/.Tscip-go gomod github.com/golang/go/src go1.17 testing/T#) {
8 bl := NewFinderPatternscip-go gomod github.com/makiuchi-d/gozxing . `github.com/makiuchi-d/gozxing/qrcode/detector`/NewFinderPattern().(1, 2, 3, 4)
9 tl := NewFinderPatternscip-go gomod github.com/makiuchi-d/gozxing . `github.com/makiuchi-d/gozxing/qrcode/detector`/NewFinderPattern().(2, 3, 4, 5)
10 tr := NewFinderPatternscip-go gomod github.com/makiuchi-d/gozxing . `github.com/makiuchi-d/gozxing/qrcode/detector`/NewFinderPattern().(3, 4, 5, 6)
11
12 fpi := NewFinderPatternInfoscip-go gomod github.com/makiuchi-d/gozxing . `github.com/makiuchi-d/gozxing/qrcode/detector`/NewFinderPatternInfo().(bl, tl, tr)
13 if fpi == nil {
14 t.Fatalscip-go gomod github.com/golang/go/src go1.17 testing/common#Fatal().("NewFinderPatternInfo returns nil")
15 }
16
17 if r := fpi.GetBottomLeftscip-go gomod github.com/makiuchi-d/gozxing . `github.com/makiuchi-d/gozxing/qrcode/detector`/FinderPatternInfo#GetBottomLeft().(); r != bl {
18 t.Fatalfscip-go gomod github.com/golang/go/src go1.17 testing/common#Fatalf().("BottomLeft is not match, %v, %v", r, bl)
19 }
20 if r := fpi.GetTopLeftscip-go gomod github.com/makiuchi-d/gozxing . `github.com/makiuchi-d/gozxing/qrcode/detector`/FinderPatternInfo#GetTopLeft().(); r != tl {
21 t.Fatalfscip-go gomod github.com/golang/go/src go1.17 testing/common#Fatalf().("TopLeft is not match, %v, %v", r, tl)
22 }
23 if r := fpi.GetTopRightscip-go gomod github.com/makiuchi-d/gozxing . `github.com/makiuchi-d/gozxing/qrcode/detector`/FinderPatternInfo#GetTopRight().(); r != tr {
24 t.Fatalfscip-go gomod github.com/golang/go/src go1.17 testing/common#Fatalf().("TopRight is not match, %v, %v", r, tr)
25 }
26 }