MCPcopy Index your code
hub / github.com/CovenantSQL/CovenantSQL / TestQueryTypeStringer

Function TestQueryTypeStringer

types/types_test.go:429–450  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

427}
428
429func TestQueryTypeStringer(t *testing.T) {
430 Convey("Query type stringer should return expected string", t, func() {
431 var cases = [...]struct {
432 i fmt.Stringer
433 s string
434 }{
435 {
436 i: ReadQuery,
437 s: "read",
438 }, {
439 i: WriteQuery,
440 s: "write",
441 }, {
442 i: QueryType(0xffff),
443 s: "unknown",
444 },
445 }
446 for _, v := range cases {
447 So(v.s, ShouldEqual, fmt.Sprintf("%v", v.i))
448 }
449 })
450}
451
452func benchmarkEnc(b *testing.B, v interface{}) {
453 var (

Callers

nothing calls this directly

Calls 1

QueryTypeTypeAlias · 0.85

Tested by

no test coverage detected