qiniu / logkit

Compare 1ff032f ... +1 ... ffd22e1

Coverage Reach
reader/sql/dataconvert.go reader/sql/records.go reader/sql/meta.go reader/sql/utils.go reader/sql/time.go reader/sql/magic.go reader/sql/compare.go reader/sql/sortdata.go reader/mysql/mysql.go reader/mysql/mysqloffset.go reader/tailx/tailx.go reader/postgres/postgres.go reader/postgres/mongooffset.go reader/postgres/time.go reader/snmp/snmp.go reader/dirx/dirx.go reader/dirx/dir_reader.go reader/seqfile/seqfile.go reader/meta.go reader/bufreader/bufreader.go reader/bufreader/linecache.go reader/elastic/elastic.go reader/cloudtrail/cloudtrail.go reader/socket/socket.go reader/extract/reader.go reader/singlefile/singlefile.go reader/mongo/mongo.go reader/httpfetch/http_fetch.go reader/redis/redis.go reader/script/script.go reader/utils.go reader/kafka/kafka.go reader/http/http.go reader/autofile/autofile.go reader/reader.go transforms/mutate/convert.go transforms/mutate/xml.go transforms/mutate/arrayexpand.go transforms/mutate/keyvalue.go transforms/mutate/script.go transforms/mutate/substring.go transforms/mutate/urlparam.go transforms/mutate/mapreplace.go transforms/mutate/urlconvert.go transforms/mutate/case.go transforms/mutate/timestamp.go transforms/mutate/json.go transforms/mutate/copy.go transforms/mutate/replace.go transforms/mutate/filter.go transforms/mutate/discard.go transforms/mutate/split.go transforms/mutate/trim.go transforms/mutate/concat.go transforms/mutate/label.go transforms/mutate/rename.go transforms/mutate/pick.go transforms/mutate/pandorakey_convert.go transforms/ip/ip.go transforms/ip/number2ip.go transforms/ip/datx.go transforms/ip/dat.go transforms/ip/locator.go transforms/ip/mmdb.go transforms/apps/redis.go transforms/apps/tode.go transforms/ua/ua.go transforms/service/k8stag.go transforms/date/date.go transforms/aws/cloudtrail.go mgr/runner.go mgr/mgr.go mgr/cluster.go mgr/metric_runner.go mgr/dataflow.go mgr/rest.go mgr/models.go mgr/api_sender.go mgr/api_parser.go mgr/api_transformer.go mgr/api_reader.go mgr/api_metric.go mgr/api_cleaner.go sender/pandora/pandora.go sender/fault_tolerant.go sender/open_falcon/transfer.go sender/http/http.go sender/file/file.go sender/file/writer.go sender/csv/csv.go sender/sqlfile/sqlfile.go sender/mysql/mysql.go sender/sender.go parser/csv/csv.go parser/qiniu/qiniu.go parser/nginx/nginx.go parser/grok/grok.go parser/kafkarest/kafkarest.go parser/logfmt/logfmt.go parser/syslog/syslog.go parser/json/json.go parser/mysql/mysql.go parser/linuxaudit/audit.go parser/parser.go parser/raw/raw.go parser/utils.go utils/models/utils.go utils/models/models.go utils/models/code.go utils/parse/linuxaudit/linuxaudit.go utils/parse/syslog/syslog.go utils/utils.go utils/equeue/queue.go utils/os/utils_linux.go utils/os/utils_unix.go utils/os/utils_common.go utils/os/signal.go utils/magic/magic.go utils/mongo.go utils/timetracker.go queue/disk.go queue/direct.go queue/utils.go conf/map_conf.go conf/load_conf.go cli/upgrade.go self/logrunner.go logkit.go cleaner/cleaner.go router/sender_router.go router/rest_router_models.go rateio/controller.go rateio/writer.go rateio/reader.go audit/audit.go times/times.go samples/sender.go samples/parser.go

No flags found

Use flags to group coverage reports by test type, project and/or folders.
Then setup custom commit statuses and notifications for each flag.

e.g., #unittest #integration

#production #enterprise

#frontend #backend

Learn more about Codecov Flags here.

Showing 1 of 2 files from the diff.
Other files ignored by Codecov

@@ -210,52 +210,7 @@
Loading
210 210
func splitKV(line string, sep string) ([]string, error) {
211 211
	line = strings.Replace(line, "\\\"", "", -1)
212 212
	data := make([]string, 0, 100)
213 -
	// contain /n;
214 213
215 -
	nl := strings.Index(line, "\n")
216 -
	for nl != -1 {
217 -
		if nl >= len(line)-1 {
218 -
			line = line[:len(line)-1]
219 -
			break
220 -
		}
221 -
		preSep := strings.LastIndex(line[:nl], sep)
222 -
		nextSep := strings.Index(line[nl+1:], sep)
223 -
		// 前后没sep的情况 不用拆分
224 -
		if nextSep == -1 {
225 -
			break
226 -
		}
227 -
228 -
		if preSep == -1 {
229 -
			n := strings.Index(line[nl+1:], "\n")
230 -
			if n == -1 {
231 -
				break
232 -
			}
233 -
			nl = nl + 1 + n
234 -
			continue
235 -
		}
236 -
237 -
		// 前后都有sep的情况:右侧trim后有空格 合并;没有则不合并
238 -
		afTrim := strings.TrimSpace(line[nl+1 : nl+1+nextSep])
239 -
		nextSpace := strings.LastIndexFunc(afTrim, unicode.IsSpace)
240 -
		if nextSpace != -1 {
241 -
			n := strings.Index(line[nl+1:], "\n")
242 -
			if n == -1 {
243 -
				break
244 -
			}
245 -
			nl = nl + 1 + n
246 -
			continue
247 -
		}
248 -
		next := line[nl+1:]
249 -
		nextResult, err := splitKV(next, sep)
250 -
		if err != nil {
251 -
			return nil, err
252 -
		}
253 -
		data = append(data, nextResult...)
254 -
		line = line[:nl]
255 -
		nl = strings.Index(line, "\n")
256 -
	}
257 -
258 -
	line = strings.Replace(line, "\n", "", -1)
259 214
	if !strings.Contains(line, sep) {
260 215
		return nil, errors.New(fmt.Sprintf("no splitter exist, %s", errMsg))
261 216
	}

Learn more Showing 4 files with coverage changes found.

Changes in reader/socket/socket.go
-6
+6
Loading file...
Changes in reader/dirx/dir_reader.go
-4
+2
+2
Loading file...
Changes in logkit.go
-2
+2
Loading file...
Changes in mgr/metric_runner.go
-4
+2
+2
Loading file...
Files Coverage
conf 97.67%
mgr -0.11% 66.16%
parser +<.01% 87.33%
queue 74.13%
rateio 95.74%
reader -0.11% 47.70%
router 54.13%
samples 100.00%
sender 44.94%
transforms 55.85%
utils 57.20%
audit/audit.go 73.63%
cleaner/cleaner.go 58.82%
cli/upgrade.go 47.56%
logkit.go -1.12% 35.20%
self/logrunner.go 53.88%
times/times.go 91.30%
Project Totals (138 files) 56.96%
Loading