MCPcopy
hub / github.com/dropbox/godropbox / TestBitwiseXor

Method TestBitwiseXor

database/sqlbuilder/expression_test.go:447–457  ·  view source on GitHub ↗
(c *gc.C)

Source from the content-addressed store, hash-verified

445}
446
447func (s *ExprSuite) TestBitwiseXor(c *gc.C) {
448 clause := BitXor(Literal(1), Literal(2))
449
450 buf := &bytes.Buffer{}
451
452 err := clause.SerializeSql(buf)
453 c.Assert(err, gc.IsNil)
454
455 sql := buf.String()
456 c.Assert(sql, gc.Equals, "1 ^ 2")
457}
458
459func (s *ExprSuite) TestPlus(c *gc.C) {
460 clause := Plus(Literal(1), Literal(2))

Callers

nothing calls this directly

Calls 4

BitXorFunction · 0.85
LiteralFunction · 0.85
SerializeSqlMethod · 0.65
StringMethod · 0.65

Tested by

no test coverage detected