Skip to content

Commit 285ff45

Browse files
fix action addrs test
1 parent 9ee6172 commit 285ff45

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

internal/addrs/action_test.go

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -109,15 +109,15 @@ func TestActionInstanceEqual(t *testing.T) {
109109
func TestAbsActionInstanceEqual(t *testing.T) {
110110
actions := []AbsActionInstance{
111111
{
112-
RootModuleInstance,
113-
ActionInstance{
112+
Module: RootModuleInstance,
113+
Action: ActionInstance{
114114
Action: Action{Type: "foo", Name: "bar"},
115115
Key: NoKey,
116116
},
117117
},
118118
{
119-
mustParseModuleInstanceStr("module.child"),
120-
ActionInstance{
119+
Module: mustParseModuleInstanceStr("module.child"),
120+
Action: ActionInstance{
121121
Action: Action{Type: "the", Name: "bloop"},
122122
Key: StringKey("fish"),
123123
},
@@ -139,15 +139,15 @@ func TestAbsActionInstanceEqual(t *testing.T) {
139139
}{
140140
{ // different keys
141141
AbsActionInstance{
142-
RootModuleInstance,
143-
ActionInstance{
142+
Module: RootModuleInstance,
143+
Action: ActionInstance{
144144
Action: Action{Type: "foo", Name: "bar"},
145145
Key: NoKey,
146146
},
147147
},
148148
AbsActionInstance{
149-
RootModuleInstance,
150-
ActionInstance{
149+
Module: RootModuleInstance,
150+
Action: ActionInstance{
151151
Action: Action{Type: "foo", Name: "bar"},
152152
Key: IntKey(1),
153153
},
@@ -156,15 +156,15 @@ func TestAbsActionInstanceEqual(t *testing.T) {
156156

157157
{ // different module
158158
AbsActionInstance{
159-
RootModuleInstance,
160-
ActionInstance{
159+
Module: RootModuleInstance,
160+
Action: ActionInstance{
161161
Action: Action{Type: "foo", Name: "bar"},
162162
Key: NoKey,
163163
},
164164
},
165165
AbsActionInstance{
166-
mustParseModuleInstanceStr("module.child[1]"),
167-
ActionInstance{
166+
Module: mustParseModuleInstanceStr("module.child[1]"),
167+
Action: ActionInstance{
168168
Action: Action{Type: "foo", Name: "bar"},
169169
Key: NoKey,
170170
},
@@ -173,15 +173,15 @@ func TestAbsActionInstanceEqual(t *testing.T) {
173173

174174
{ // totally different
175175
AbsActionInstance{
176-
RootModuleInstance,
177-
ActionInstance{
176+
Module: RootModuleInstance,
177+
Action: ActionInstance{
178178
Action: Action{Type: "oof", Name: "rab"},
179179
Key: NoKey,
180180
},
181181
},
182182
AbsActionInstance{
183-
mustParseModuleInstanceStr("module.foo"),
184-
ActionInstance{
183+
Module: mustParseModuleInstanceStr("module.foo"),
184+
Action: ActionInstance{
185185
Action: Action{Type: "foo", Name: "bar"},
186186
Key: IntKey(11),
187187
},

0 commit comments

Comments
 (0)