summaryrefslogtreecommitdiff
path: root/modules_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules_test.go')
-rw-r--r--modules_test.go42
1 files changed, 21 insertions, 21 deletions
diff --git a/modules_test.go b/modules_test.go
index ef7edf7..c561c6f 100644
--- a/modules_test.go
+++ b/modules_test.go
@@ -22,17 +22,17 @@ import (
func TestGetModules(t *testing.T) {
modulesMu.Lock()
modules = map[string]ModuleInfo{
- "a": {Name: "a"},
- "a.b": {Name: "a.b"},
- "a.b.c": {Name: "a.b.c"},
- "a.b.cd": {Name: "a.b.cd"},
- "a.c": {Name: "a.c"},
- "a.d": {Name: "a.d"},
- "b": {Name: "b"},
- "b.a": {Name: "b.a"},
- "b.b": {Name: "b.b"},
- "b.a.c": {Name: "b.a.c"},
- "c": {Name: "c"},
+ "a": {ID: "a"},
+ "a.b": {ID: "a.b"},
+ "a.b.c": {ID: "a.b.c"},
+ "a.b.cd": {ID: "a.b.cd"},
+ "a.c": {ID: "a.c"},
+ "a.d": {ID: "a.d"},
+ "b": {ID: "b"},
+ "b.a": {ID: "b.a"},
+ "b.b": {ID: "b.b"},
+ "b.a.c": {ID: "b.a.c"},
+ "c": {ID: "c"},
}
modulesMu.Unlock()
@@ -43,24 +43,24 @@ func TestGetModules(t *testing.T) {
{
input: "",
expect: []ModuleInfo{
- {Name: "a"},
- {Name: "b"},
- {Name: "c"},
+ {ID: "a"},
+ {ID: "b"},
+ {ID: "c"},
},
},
{
input: "a",
expect: []ModuleInfo{
- {Name: "a.b"},
- {Name: "a.c"},
- {Name: "a.d"},
+ {ID: "a.b"},
+ {ID: "a.c"},
+ {ID: "a.d"},
},
},
{
input: "a.b",
expect: []ModuleInfo{
- {Name: "a.b.c"},
- {Name: "a.b.cd"},
+ {ID: "a.b.c"},
+ {ID: "a.b.cd"},
},
},
{
@@ -69,8 +69,8 @@ func TestGetModules(t *testing.T) {
{
input: "b",
expect: []ModuleInfo{
- {Name: "b.a"},
- {Name: "b.b"},
+ {ID: "b.a"},
+ {ID: "b.b"},
},
},
{