go-xorm / xorm
Showing 2 of 4 files from the diff.
Other files ignored by Codecov
go.mod has changed.
go.sum has changed.

@@ -695,7 +695,7 @@
Loading
695 695
696 696
// Desc generate `ORDER BY xx DESC`
697 697
func (statement *Statement) Desc(colNames ...string) *Statement {
698 -
	var buf builder.StringBuilder
698 +
	var buf strings.Builder
699 699
	if len(statement.OrderStr) > 0 {
700 700
		fmt.Fprint(&buf, statement.OrderStr, ", ")
701 701
	}
@@ -707,7 +707,7 @@
Loading
707 707
708 708
// Asc provide asc order by query condition, the input parameters are columns.
709 709
func (statement *Statement) Asc(colNames ...string) *Statement {
710 -
	var buf builder.StringBuilder
710 +
	var buf strings.Builder
711 711
	if len(statement.OrderStr) > 0 {
712 712
		fmt.Fprint(&buf, statement.OrderStr, ", ")
713 713
	}
@@ -736,7 +736,7 @@
Loading
736 736
737 737
// Join The joinOP should be one of INNER, LEFT OUTER, CROSS etc - this will be prepended to JOIN
738 738
func (statement *Statement) Join(joinOP string, tablename interface{}, condition string, args ...interface{}) *Statement {
739 -
	var buf builder.StringBuilder
739 +
	var buf strings.Builder
740 740
	if len(statement.JoinStr) > 0 {
741 741
		fmt.Fprintf(&buf, "%v %v JOIN ", statement.JoinStr, joinOP)
742 742
	} else {
@@ -801,7 +801,7 @@
Loading
801 801
		return ""
802 802
	}
803 803
804 -
	var buf builder.StringBuilder
804 +
	var buf strings.Builder
805 805
	columns := statement.RefTable.Columns()
806 806
807 807
	for _, col := range columns {
@@ -1118,7 +1118,7 @@
Loading
1118 1118
		}
1119 1119
	}
1120 1120
1121 -
	var buf builder.StringBuilder
1121 +
	var buf strings.Builder
1122 1122
	fmt.Fprintf(&buf, "SELECT %v%v%v%v%v", distinct, top, columnStr, fromStr, whereStr)
1123 1123
	if len(mssqlCondi) > 0 {
1124 1124
		if len(whereStr) > 0 {

@@ -190,14 +190,14 @@
Loading
190 190
		return value
191 191
	}
192 192
193 -
	buf := builder.StringBuilder{}
193 +
	buf := strings.Builder{}
194 194
	engine.QuoteTo(&buf, value)
195 195
196 196
	return buf.String()
197 197
}
198 198
199 199
// QuoteTo quotes string and writes into the buffer
200 -
func (engine *Engine) QuoteTo(buf *builder.StringBuilder, value string) {
200 +
func (engine *Engine) QuoteTo(buf *strings.Builder, value string) {
201 201
	if buf == nil {
202 202
		return
203 203
	}
Files Coverage
cache_lru.go 61.64%
cache_memory_store.go 100.00%
context_cache.go 100.00%
convert.go 28.97%
dialect_mssql.go 73.81%
dialect_mysql.go 58.79%
dialect_oracle.go 0.00%
dialect_postgres.go 75.96%
dialect_sqlite3.go 77.07%
engine.go 62.60%
engine_cond.go 56.29%
engine_context.go 80.00%
engine_group.go 0.00%
engine_group_policy.go 0.00%
engine_table.go 81.16%
error.go 50.00%
helpers.go 59.73%
helpler_time.go 100.00%
json.go 100.00%
logger.go 60.87%
processors.go 77.78%
rows.go 56.14%
session.go 58.49%
session_cols.go 93.48%
session_cond.go 85.19%
session_context.go 75.00%
session_convert.go 22.29%
session_delete.go 58.23%
session_exist.go 62.96%
session_find.go 68.01%
session_get.go 64.56%
session_insert.go 58.69%
session_iterate.go 76.92%
session_query.go 61.70%
session_raw.go 57.58%
session_schema.go 59.13%
session_stats.go 75.00%
session_tx.go 91.67%
session_update.go 56.62%
statement.go 67.85%
syslogger.go 0.00%
tag.go 79.31%
transaction.go 63.64%
xorm.go 66.67%
Project Totals (44 files) 57.56%
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading