@@ -109,15 +109,15 @@ func TestActionInstanceEqual(t *testing.T) {
109
109
func TestAbsActionInstanceEqual (t * testing.T ) {
110
110
actions := []AbsActionInstance {
111
111
{
112
- RootModuleInstance ,
113
- ActionInstance {
112
+ Module : RootModuleInstance ,
113
+ Action : ActionInstance {
114
114
Action : Action {Type : "foo" , Name : "bar" },
115
115
Key : NoKey ,
116
116
},
117
117
},
118
118
{
119
- mustParseModuleInstanceStr ("module.child" ),
120
- ActionInstance {
119
+ Module : mustParseModuleInstanceStr ("module.child" ),
120
+ Action : ActionInstance {
121
121
Action : Action {Type : "the" , Name : "bloop" },
122
122
Key : StringKey ("fish" ),
123
123
},
@@ -139,15 +139,15 @@ func TestAbsActionInstanceEqual(t *testing.T) {
139
139
}{
140
140
{ // different keys
141
141
AbsActionInstance {
142
- RootModuleInstance ,
143
- ActionInstance {
142
+ Module : RootModuleInstance ,
143
+ Action : ActionInstance {
144
144
Action : Action {Type : "foo" , Name : "bar" },
145
145
Key : NoKey ,
146
146
},
147
147
},
148
148
AbsActionInstance {
149
- RootModuleInstance ,
150
- ActionInstance {
149
+ Module : RootModuleInstance ,
150
+ Action : ActionInstance {
151
151
Action : Action {Type : "foo" , Name : "bar" },
152
152
Key : IntKey (1 ),
153
153
},
@@ -156,15 +156,15 @@ func TestAbsActionInstanceEqual(t *testing.T) {
156
156
157
157
{ // different module
158
158
AbsActionInstance {
159
- RootModuleInstance ,
160
- ActionInstance {
159
+ Module : RootModuleInstance ,
160
+ Action : ActionInstance {
161
161
Action : Action {Type : "foo" , Name : "bar" },
162
162
Key : NoKey ,
163
163
},
164
164
},
165
165
AbsActionInstance {
166
- mustParseModuleInstanceStr ("module.child[1]" ),
167
- ActionInstance {
166
+ Module : mustParseModuleInstanceStr ("module.child[1]" ),
167
+ Action : ActionInstance {
168
168
Action : Action {Type : "foo" , Name : "bar" },
169
169
Key : NoKey ,
170
170
},
@@ -173,15 +173,15 @@ func TestAbsActionInstanceEqual(t *testing.T) {
173
173
174
174
{ // totally different
175
175
AbsActionInstance {
176
- RootModuleInstance ,
177
- ActionInstance {
176
+ Module : RootModuleInstance ,
177
+ Action : ActionInstance {
178
178
Action : Action {Type : "oof" , Name : "rab" },
179
179
Key : NoKey ,
180
180
},
181
181
},
182
182
AbsActionInstance {
183
- mustParseModuleInstanceStr ("module.foo" ),
184
- ActionInstance {
183
+ Module : mustParseModuleInstanceStr ("module.foo" ),
184
+ Action : ActionInstance {
185
185
Action : Action {Type : "foo" , Name : "bar" },
186
186
Key : IntKey (11 ),
187
187
},
0 commit comments