MCPcopy Index your code
hub / github.com/dropbox/godropbox / writeComment

Function writeComment

database/sqlbuilder/statement.go:996–1006  ·  view source on GitHub ↗
(comment string, buf *bytes.Buffer)

Source from the content-addressed store, hash-verified

994}
995
996func writeComment(comment string, buf *bytes.Buffer) error {
997 if comment != "" {
998 _, _ = buf.WriteString("/* ")
999 if !isValidComment(comment) {
1000 return errors.Newf("Invalid comment: %s", comment)
1001 }
1002 _, _ = buf.WriteString(comment)
1003 _, _ = buf.WriteString(" */")
1004 }
1005 return nil
1006}
1007
1008func newOrderByListClause(clauses ...OrderByClause) *listClause {
1009 ret := &listClause{

Callers 4

StringMethod · 0.85
StringMethod · 0.85
StringMethod · 0.85
StringMethod · 0.85

Calls 2

NewfFunction · 0.92
isValidCommentFunction · 0.85

Tested by

no test coverage detected