Debian Codegraph @

schema/unparse_test.go

raw symbols SCIP
1 package schemascip-go gomod git.sr.ht/~sircmpwn/go-bare . `git.sr.ht/~sircmpwn/go-bare/schema`/
2
3 import (
4 "testingscip-go gomod github.com/golang/go/src go1.14 testing/"
5
6 "github.com/stretchr/testify/assertscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/"
7 )
8
9 func TestUnparseValuescip-go gomod git.sr.ht/~sircmpwn/go-bare . `git.sr.ht/~sircmpwn/go-bare/schema`/TestUnparseValue().(t *testingscip-go gomod github.com/golang/go/src go1.14 testing/.Tscip-go gomod github.com/golang/go/src go1.14 testing/T#) {
10 var (
11 err error
12 schema string
13
14 u8 uint8
15 u16 uint16
16 u32 uint32
17 u64 uint64
18 u uint
19 i8 int8
20 i16 int16
21 i32 int32
22 i64 int64
23 i int
24 f32 float32
25 f64 float64
26 b bool
27 str string
28 )
29
30 schema, err = SchemaForscip-go gomod git.sr.ht/~sircmpwn/go-bare . `git.sr.ht/~sircmpwn/go-bare/schema`/SchemaFor().(&u8)
31 assertscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/.Nilscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/Nil().(t, err, "Expected SchemaFor to return without error")
32 assertscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/Equal().(t, schema, "u8", "Expected SchemaFor to return u8")
33
34 schema, err = SchemaForscip-go gomod git.sr.ht/~sircmpwn/go-bare . `git.sr.ht/~sircmpwn/go-bare/schema`/SchemaFor().(&u16)
35 assertscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/.Nilscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/Nil().(t, err, "Expected SchemaFor to return without error")
36 assertscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/Equal().(t, schema, "u16", "Expected SchemaFor to return u16")
37
38 schema, err = SchemaForscip-go gomod git.sr.ht/~sircmpwn/go-bare . `git.sr.ht/~sircmpwn/go-bare/schema`/SchemaFor().(&u32)
39 assertscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/.Nilscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/Nil().(t, err, "Expected SchemaFor to return without error")
40 assertscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/Equal().(t, schema, "u32", "Expected SchemaFor to return u32")
41
42 schema, err = SchemaForscip-go gomod git.sr.ht/~sircmpwn/go-bare . `git.sr.ht/~sircmpwn/go-bare/schema`/SchemaFor().(&u64)
43 assertscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/.Nilscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/Nil().(t, err, "Expected SchemaFor to return without error")
44 assertscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/Equal().(t, schema, "u64", "Expected SchemaFor to return u64")
45
46 schema, err = SchemaForscip-go gomod git.sr.ht/~sircmpwn/go-bare . `git.sr.ht/~sircmpwn/go-bare/schema`/SchemaFor().(&u)
47 assertscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/.Nilscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/Nil().(t, err, "Expected SchemaFor to return without error")
48 assertscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/Equal().(t, schema, "uint", "Expected SchemaFor to return u32")
49
50 schema, err = SchemaForscip-go gomod git.sr.ht/~sircmpwn/go-bare . `git.sr.ht/~sircmpwn/go-bare/schema`/SchemaFor().(&i8)
51 assertscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/.Nilscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/Nil().(t, err, "Expected SchemaFor to return without error")
52 assertscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/Equal().(t, schema, "i8", "Expected SchemaFor to return i8")
53
54 schema, err = SchemaForscip-go gomod git.sr.ht/~sircmpwn/go-bare . `git.sr.ht/~sircmpwn/go-bare/schema`/SchemaFor().(&i16)
55 assertscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/.Nilscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/Nil().(t, err, "Expected SchemaFor to return without error")
56 assertscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/Equal().(t, schema, "i16", "Expected SchemaFor to return i16")
57
58 schema, err = SchemaForscip-go gomod git.sr.ht/~sircmpwn/go-bare . `git.sr.ht/~sircmpwn/go-bare/schema`/SchemaFor().(&i32)
59 assertscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/.Nilscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/Nil().(t, err, "Expected SchemaFor to return without error")
60 assertscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/Equal().(t, schema, "i32", "Expected SchemaFor to return i32")
61
62 schema, err = SchemaForscip-go gomod git.sr.ht/~sircmpwn/go-bare . `git.sr.ht/~sircmpwn/go-bare/schema`/SchemaFor().(&i64)
63 assertscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/.Nilscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/Nil().(t, err, "Expected SchemaFor to return without error")
64 assertscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/Equal().(t, schema, "i64", "Expected SchemaFor to return i64")
65
66 schema, err = SchemaForscip-go gomod git.sr.ht/~sircmpwn/go-bare . `git.sr.ht/~sircmpwn/go-bare/schema`/SchemaFor().(&i)
67 assertscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/.Nilscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/Nil().(t, err, "Expected SchemaFor to return without error")
68 assertscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/Equal().(t, schema, "int", "Expected SchemaFor to return i32")
69
70 schema, err = SchemaForscip-go gomod git.sr.ht/~sircmpwn/go-bare . `git.sr.ht/~sircmpwn/go-bare/schema`/SchemaFor().(&f32)
71 assertscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/.Nilscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/Nil().(t, err, "Expected SchemaFor to return without error")
72 assertscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/Equal().(t, schema, "f32", "Expected SchemaFor to return f32")
73
74 schema, err = SchemaForscip-go gomod git.sr.ht/~sircmpwn/go-bare . `git.sr.ht/~sircmpwn/go-bare/schema`/SchemaFor().(&f64)
75 assertscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/.Nilscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/Nil().(t, err, "Expected SchemaFor to return without error")
76 assertscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/Equal().(t, schema, "f64", "Expected SchemaFor to return f64")
77
78 schema, err = SchemaForscip-go gomod git.sr.ht/~sircmpwn/go-bare . `git.sr.ht/~sircmpwn/go-bare/schema`/SchemaFor().(&b)
79 assertscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/.Nilscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/Nil().(t, err, "Expected SchemaFor to return without error")
80 assertscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/Equal().(t, schema, "bool", "Expected SchemaFor to return bool")
81
82 schema, err = SchemaForscip-go gomod git.sr.ht/~sircmpwn/go-bare . `git.sr.ht/~sircmpwn/go-bare/schema`/SchemaFor().(&str)
83 assertscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/.Nilscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/Nil().(t, err, "Expected SchemaFor to return without error")
84 assertscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/Equal().(t, schema, "string", "Expected SchemaFor to return string")
85 }
86
87 func TestUnparseOptionalscip-go gomod git.sr.ht/~sircmpwn/go-bare . `git.sr.ht/~sircmpwn/go-bare/schema`/TestUnparseOptional().(t *testingscip-go gomod github.com/golang/go/src go1.14 testing/.Tscip-go gomod github.com/golang/go/src go1.14 testing/T#) {
88 var val *string
89 schema, err := SchemaForscip-go gomod git.sr.ht/~sircmpwn/go-bare . `git.sr.ht/~sircmpwn/go-bare/schema`/SchemaFor().(&val)
90 assertscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/.Nilscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/Nil().(t, err, "Expected SchemaFor to return without error")
91 assertscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.6.1 `github.com/stretchr/testify/assert`/Equal().(t, schema, "optional<string>",
92 "Expected SchemaFor to return optional<string>")
93 }