-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexport_test.go
24 lines (20 loc) · 881 Bytes
/
export_test.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package lexy
// Things that need to be exported for testing, but should not be part of the public API.
// The identifiers are in the lexy package, but the filename ends in _test.go,
// preventing their inclusion in the public API.
const (
TestingPrefixNilFirst = prefixNilFirst
TestingPrefixNonNil = prefixNonNil
TestingPrefixNilLast = prefixNilLast
TestingTerminator = terminator
TestingEscape = escape
)
// Used by fuzz testers.
var (
TestingTermUint16 Codec[uint16] = terminatorCodec[uint16]{Uint16()}
TestingTermUint64 Codec[uint64] = terminatorCodec[uint64]{Uint64()}
TestingTermInt16 Codec[int16] = terminatorCodec[int16]{Int16()}
TestingTermInt64 Codec[int64] = terminatorCodec[int64]{Int64()}
TestingTermFloat32 Codec[float32] = terminatorCodec[float32]{Float32()}
TestingTermFloat64 Codec[float64] = terminatorCodec[float64]{Float64()}
)