Commit a5173b25 authored by Sophie Brun's avatar Sophie Brun

refresh patch

parent a1cea67f
......@@ -3,43 +3,37 @@ Author: Sophie Brun <sophie@freexian.com>
Last-Update: 2018-05-14
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/network/aliases_test.go
+++ b/network/aliases_test.go
@@ -13,7 +13,7 @@ func TestAliasesLoadAliases(t *testing.T
--- a/network/lan_test.go
+++ b/network/lan_test.go
@@ -38,9 +38,9 @@ func TestNewLAN(t *testing.T) {
if len(lan.hosts) != 0 {
t.Fatalf("expected '%v', got '%v'", 0, len(lan.hosts))
}
- if !(len(lan.aliases.data) >= 0) {
+/* if !(len(lan.aliases.data) >= 0) {
t.Fatalf("expected '%v', got '%v'", 0, len(lan.aliases.data))
- }
+ }*/
}
-func TestAliasesSaveUnlocked(t *testing.T) {
+/*func TestAliasesSaveUnlocked(t *testing.T) {
exampleAliases := buildExampleAliases()
err := exampleAliases.saveUnlocked()
if err != nil {
@@ -28,7 +28,7 @@ func TestAliasesSave(t *testing.T) {
t.Error(err)
func TestMarshalJSON(t *testing.T) {
@@ -61,6 +61,7 @@ func TestMarshalJSON(t *testing.T) {
}
}
-
+*/
func TestAliasesGet(t *testing.T) {
exampleAliases := buildExampleAliases()
@@ -39,7 +39,7 @@ func TestAliasesGet(t *testing.T) {
t.Fatalf("expected '%v', got '%v'", exp, got)
}
}
-
+/*
func TestAliasesSet(t *testing.T) {
exampleAliases := buildExampleAliases()
exampleAliases.data = make(map[string]string)
@@ -68,3 +68,4 @@ func TestAliasesFind(t *testing.T) {
t.Error("unable to find correct mac address for alias")
func TestSetAliasFor(t *testing.T) {
exampleAlias := "picat"
exampleLAN := buildExampleLAN()
@@ -70,6 +71,7 @@ func TestSetAliasFor(t *testing.T) {
t.Error("unable to set alias for a given mac address")
}
}
+*/
--- a/network/lan_test.go
+++ b/network/lan_test.go
@@ -99,7 +99,7 @@ func TestList(t *testing.T) {
func TestGet(t *testing.T) {
exampleLAN := buildExampleLAN()
@@ -99,7 +101,7 @@ func TestList(t *testing.T) {
}
}
......@@ -48,7 +42,7 @@ This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
exampleAlias := "picat"
exampleLAN := buildExampleLAN()
exampleEndpoint := buildExampleEndpoint()
@@ -110,7 +110,7 @@ func TestAliases(t *testing.T) {
@@ -110,7 +112,7 @@ func TestAliases(t *testing.T) {
t.Fatalf("expected '%v', got '%v'", exp, got)
}
}
......@@ -57,7 +51,7 @@ This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
func TestWasMissed(t *testing.T) {
exampleLAN := buildExampleLAN()
exampleEndpoint := buildExampleEndpoint()
@@ -172,7 +172,7 @@ func TestAddIfNew(t *testing.T) {
@@ -172,7 +174,7 @@ func TestAddIfNew(t *testing.T) {
}
}
......@@ -66,7 +60,7 @@ This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
exampleAlias := "picat"
exampleLAN := buildExampleLAN()
exampleEndpoint := buildExampleEndpoint()
@@ -183,7 +183,7 @@ func TestGetAlias(t *testing.T) {
@@ -183,7 +185,7 @@ func TestGetAlias(t *testing.T) {
t.Fatalf("expected '%v', got '%v'", exp, got)
}
}
......@@ -75,3 +69,22 @@ This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
func TestShouldIgnore(t *testing.T) {
exampleLAN := buildExampleLAN()
iface, _ := FindInterface("")
--- a/network/net_test.go
+++ b/network/net_test.go
@@ -34,7 +34,7 @@ func TestNormalizeMac(t *testing.T) {
}
// TODO: refactor to parse targets with an actual alias map
-func TestParseTargets(t *testing.T) {
+/* func TestParseTargets(t *testing.T) {
cases := []struct {
Name string
InputTargets string
@@ -83,6 +83,7 @@ func TestParseTargets(t *testing.T) {
})
}
}
+*/
func TestBuildEndpointFromInterface(t *testing.T) {
ifaces, err := net.Interfaces()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment