File: 01-Disable_test_with_dependency.patch

package info (click to toggle)
golang-github-go-logfmt-logfmt 0.3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 148 kB
  • ctags: 114
  • sloc: makefile: 2
file content (31 lines) | stat: -rw-r--r-- 521 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
Description: Disable test that adds an extra dependency.

--- a/decode-bench_test.go
+++ b/decode-bench_test.go
@@ -1,11 +1,11 @@
 package logfmt
 
 import (
-	"bufio"
+//	"bufio"
 	"bytes"
 	"testing"
 
-	kr "github.com/kr/logfmt"
+//	kr "github.com/kr/logfmt"
 )
 
 func BenchmarkDecodeKeyval(b *testing.B) {
@@ -36,6 +36,7 @@
 	}
 }
 
+/*
 func BenchmarkKRDecode(b *testing.B) {
 	const rows = 10000
 	data := []byte{}
@@ -73,3 +74,4 @@
 func (discardHandler) HandleLogfmt(key, val []byte) error {
 	return nil
 }
+*/