}
for _, tc := range tests {
+ t.Run(tc.name, func(t *testing.T) {
s := &Sync{
config: &config.Config{
DryRun: tc.dryRun,
res := s.formatFileChanges(tc.changes)
if tc.exp != res {
- t.Errorf("%s: res: %s", tc.name,
+ t.Errorf("res: %s",
cmp.Diff(tc.exp, res))
}
+ })
}
}
}
for _, tc := range tests {
+ t.Run(tc.name, func(t *testing.T) {
s := &Sync{
config: &config.Config{
DryRun: tc.dryRun,
res := s.formatPackageChanges(tc.changes)
if tc.exp != res {
- t.Errorf("%s: res: %s", tc.name,
+ t.Errorf("res: %s",
cmp.Diff(tc.exp, res))
}
+ })
}
}
}
for _, tc := range tests {
+ t.Run(tc.name, func(t *testing.T) {
s := &Sync{
config: &config.Config{
DryRun: tc.dryRun,
res := s.formatServiceChanges(tc.changes)
if tc.exp != res {
- t.Errorf("%s: res: %s", tc.name,
+ t.Errorf("res: %s",
cmp.Diff(tc.exp, res))
}
+ })
}
}
}
for _, tc := range tests {
+ t.Run(tc.name, func(t *testing.T) {
s := &Sync{
config: &config.Config{
DryRun: tc.dryRun,
res := s.formatCommandChanges(tc.changes)
if tc.exp != res {
- t.Errorf("%s: res: %s", tc.name,
+ t.Errorf("res: %s",
cmp.Diff(tc.exp, res))
}
+ })
}
}