Package: golang-github-olekukonko-tablewriter / 0.0~git20151029.0.a5eefc2-1

0001-update-test-fixture-paths.patch Patch series | 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
32
33
34
35
36
37
38
39
Description: Update text fixture paths
 dh compiles the package in a arch-specific directory which causes
 errors in dh_auto_test.  This patch updates the paths for text fixtures
 to allow the tests to run correctly.
Author: Tim Potter <tpot@hpe.com>
Forwarded: not-needed
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
Index: golang-github-olekukonko-tablewriter/table_test.go
===================================================================
--- golang-github-olekukonko-tablewriter.orig/table_test.go
+++ golang-github-olekukonko-tablewriter/table_test.go
@@ -55,7 +55,7 @@ func ExampleLong() {
 }
 
 func ExampleCSV() {
-	table, _ := NewCSV(os.Stdout, "test.csv", true)
+	table, _ := NewCSV(os.Stdout, "../../../../../test.csv", true)
 	table.SetCenterSeparator("*")
 	table.SetRowSeparator("=")
 
@@ -63,7 +63,7 @@ func ExampleCSV() {
 }
 
 func TestCSVInfo(t *testing.T) {
-	table, err := NewCSV(os.Stdout, "test_info.csv", true)
+	table, err := NewCSV(os.Stdout, "../../../../../test_info.csv", true)
 	if err != nil {
 		t.Error(err)
 		return
@@ -74,7 +74,7 @@ func TestCSVInfo(t *testing.T) {
 }
 
 func TestCSVSeparator(t *testing.T) {
-	table, err := NewCSV(os.Stdout, "test.csv", true)
+	table, err := NewCSV(os.Stdout, "../../../../../test.csv", true)
 	if err != nil {
 		t.Error(err)
 		return