Skip to content

Commit fefe138

Browse files
committed
Fixed paths in tests
1 parent ed52200 commit fefe138

File tree

2 files changed

+22
-22
lines changed

2 files changed

+22
-22
lines changed

pkg/openmvg/openmvg_test.go

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ func TestNewOpenMVGService(t *testing.T) {
1212
ctrl := gomock.NewController(t)
1313
defer ctrl.Finish()
1414

15-
mockUtils := mocks.NewMockUtilsInterface(ctrl)
15+
mockUtils := mocks.NewMockOpenmvgoUtilsInterface(ctrl)
1616

1717
mockUtils.EXPECT().EnsureDir(gomock.Any()).Return(nil).AnyTimes()
1818

@@ -39,7 +39,7 @@ func TestRunSfMInitImageListing(t *testing.T) {
3939
ctrl := gomock.NewController(t)
4040
defer ctrl.Finish()
4141

42-
mockUtils := mocks.NewMockUtilsInterface(ctrl)
42+
mockUtils := mocks.NewMockOpenmvgoUtilsInterface(ctrl)
4343

4444
mockUtils.EXPECT().EnsureDir(gomock.Any()).Return(nil).AnyTimes()
4545

@@ -73,7 +73,7 @@ func TestRunSfMComputeFeatures(t *testing.T) {
7373
ctrl := gomock.NewController(t)
7474
defer ctrl.Finish()
7575

76-
mockUtils := mocks.NewMockUtilsInterface(ctrl)
76+
mockUtils := mocks.NewMockOpenmvgoUtilsInterface(ctrl)
7777

7878
mockUtils.EXPECT().EnsureDir(gomock.Any()).Return(nil).AnyTimes()
7979

@@ -104,7 +104,7 @@ func TestRunSfMComputeMatches(t *testing.T) {
104104
ctrl := gomock.NewController(t)
105105
defer ctrl.Finish()
106106

107-
mockUtils := mocks.NewMockUtilsInterface(ctrl)
107+
mockUtils := mocks.NewMockOpenmvgoUtilsInterface(ctrl)
108108

109109
mockUtils.EXPECT().EnsureDir(gomock.Any()).Return(nil).AnyTimes()
110110

@@ -135,7 +135,7 @@ func TestRunSfMReconstruction(t *testing.T) {
135135
ctrl := gomock.NewController(t)
136136
defer ctrl.Finish()
137137

138-
mockUtils := mocks.NewMockUtilsInterface(ctrl)
138+
mockUtils := mocks.NewMockOpenmvgoUtilsInterface(ctrl)
139139

140140
mockUtils.EXPECT().EnsureDir(gomock.Any()).Return(nil).AnyTimes()
141141

@@ -167,7 +167,7 @@ func TestRunSfMComputeSfMDataColor(t *testing.T) {
167167
ctrl := gomock.NewController(t)
168168
defer ctrl.Finish()
169169

170-
mockUtils := mocks.NewMockUtilsInterface(ctrl)
170+
mockUtils := mocks.NewMockOpenmvgoUtilsInterface(ctrl)
171171

172172
mockUtils.EXPECT().EnsureDir(gomock.Any()).Return(nil).AnyTimes()
173173

@@ -197,7 +197,7 @@ func TestRunOpenMVG2OpenMVS(t *testing.T) {
197197
ctrl := gomock.NewController(t)
198198
defer ctrl.Finish()
199199

200-
mockUtils := mocks.NewMockUtilsInterface(ctrl)
200+
mockUtils := mocks.NewMockOpenmvgoUtilsInterface(ctrl)
201201

202202
mockUtils.EXPECT().EnsureDir(gomock.Any()).Return(nil).AnyTimes()
203203

@@ -228,7 +228,7 @@ func TestRunHealthCheck(t *testing.T) {
228228
ctrl := gomock.NewController(t)
229229
defer ctrl.Finish()
230230

231-
mockUtils := mocks.NewMockUtilsInterface(ctrl)
231+
mockUtils := mocks.NewMockOpenmvgoUtilsInterface(ctrl)
232232

233233
mockUtils.EXPECT().EnsureDir(gomock.Any()).Return(nil).AnyTimes()
234234

@@ -253,7 +253,7 @@ func TestSfMSequentialPipeline(t *testing.T) {
253253
ctrl := gomock.NewController(t)
254254
defer ctrl.Finish()
255255

256-
mockUtils := mocks.NewMockUtilsInterface(ctrl)
256+
mockUtils := mocks.NewMockOpenmvgoUtilsInterface(ctrl)
257257

258258
mockUtils.EXPECT().EnsureDir(gomock.Any()).Return(nil).AnyTimes()
259259

pkg/openmvs/openmvs_test.go

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ func TestRunDensifyPointCloud_Success(t *testing.T) {
1414
ctrl := gomock.NewController(t)
1515
defer ctrl.Finish()
1616

17-
mockUtils := mocks.NewMockUtilsInterface(ctrl)
17+
mockUtils := mocks.NewMockOpenmvgoUtilsInterface(ctrl)
1818

1919
config := openmvs.OpenMVSConfig{
2020
BuildDir: "/path/to/build",
@@ -43,7 +43,7 @@ func TestRunDensifyPointCloud_Error(t *testing.T) {
4343
ctrl := gomock.NewController(t)
4444
defer ctrl.Finish()
4545

46-
mockUtils := mocks.NewMockUtilsInterface(ctrl)
46+
mockUtils := mocks.NewMockOpenmvgoUtilsInterface(ctrl)
4747

4848
config := openmvs.OpenMVSConfig{
4949
BuildDir: "/path/to/build",
@@ -82,7 +82,7 @@ func TestRunReconstructMesh_Success(t *testing.T) {
8282
ctrl := gomock.NewController(t)
8383
defer ctrl.Finish()
8484

85-
mockUtils := mocks.NewMockUtilsInterface(ctrl)
85+
mockUtils := mocks.NewMockOpenmvgoUtilsInterface(ctrl)
8686

8787
config := openmvs.OpenMVSConfig{
8888
BuildDir: "/path/to/build",
@@ -110,7 +110,7 @@ func TestRunReconstructMesh_Error(t *testing.T) {
110110
ctrl := gomock.NewController(t)
111111
defer ctrl.Finish()
112112

113-
mockUtils := mocks.NewMockUtilsInterface(ctrl)
113+
mockUtils := mocks.NewMockOpenmvgoUtilsInterface(ctrl)
114114

115115
config := openmvs.OpenMVSConfig{
116116
BuildDir: "/path/to/build",
@@ -148,7 +148,7 @@ func TestRunRefineMesh_Success(t *testing.T) {
148148
ctrl := gomock.NewController(t)
149149
defer ctrl.Finish()
150150

151-
mockUtils := mocks.NewMockUtilsInterface(ctrl)
151+
mockUtils := mocks.NewMockOpenmvgoUtilsInterface(ctrl)
152152

153153
config := openmvs.OpenMVSConfig{
154154
BuildDir: "/path/to/build",
@@ -178,7 +178,7 @@ func TestRunRefineMesh_Error(t *testing.T) {
178178
ctrl := gomock.NewController(t)
179179
defer ctrl.Finish()
180180

181-
mockUtils := mocks.NewMockUtilsInterface(ctrl)
181+
mockUtils := mocks.NewMockOpenmvgoUtilsInterface(ctrl)
182182

183183
config := openmvs.OpenMVSConfig{
184184
BuildDir: "/path/to/build",
@@ -218,7 +218,7 @@ func TestRunTextureMesh_Success(t *testing.T) {
218218
ctrl := gomock.NewController(t)
219219
defer ctrl.Finish()
220220

221-
mockUtils := mocks.NewMockUtilsInterface(ctrl)
221+
mockUtils := mocks.NewMockOpenmvgoUtilsInterface(ctrl)
222222

223223
config := openmvs.OpenMVSConfig{
224224
BuildDir: "/path/to/build",
@@ -263,7 +263,7 @@ func TestRunTextureMesh_Error(t *testing.T) {
263263
ctrl := gomock.NewController(t)
264264
defer ctrl.Finish()
265265

266-
mockUtils := mocks.NewMockUtilsInterface(ctrl)
266+
mockUtils := mocks.NewMockOpenmvgoUtilsInterface(ctrl)
267267

268268
config := openmvs.OpenMVSConfig{
269269
BuildDir: "/path/to/build",
@@ -318,7 +318,7 @@ func TestRunPipeline_Success(t *testing.T) {
318318
ctrl := gomock.NewController(t)
319319
defer ctrl.Finish()
320320

321-
mockUtils := mocks.NewMockUtilsInterface(ctrl)
321+
mockUtils := mocks.NewMockOpenmvgoUtilsInterface(ctrl)
322322

323323
config := openmvs.OpenMVSConfig{
324324
BuildDir: "/path/to/build",
@@ -345,7 +345,7 @@ func TestRunPipeline_Error(t *testing.T) {
345345
ctrl := gomock.NewController(t)
346346
defer ctrl.Finish()
347347

348-
mockUtils := mocks.NewMockUtilsInterface(ctrl)
348+
mockUtils := mocks.NewMockOpenmvgoUtilsInterface(ctrl)
349349

350350
config := openmvs.OpenMVSConfig{
351351
BuildDir: "/path/to/build",
@@ -382,7 +382,7 @@ func TestNewOpenMVSService_Success(t *testing.T) {
382382
ctrl := gomock.NewController(t)
383383
defer ctrl.Finish()
384384

385-
mockUtils := mocks.NewMockUtilsInterface(ctrl)
385+
mockUtils := mocks.NewMockOpenmvgoUtilsInterface(ctrl)
386386

387387
config := &openmvs.OpenMVSConfig{
388388
OutputDir: "/path/to/output",
@@ -406,7 +406,7 @@ func TestNewOpenMVSService_FailOutputDir(t *testing.T) {
406406
ctrl := gomock.NewController(t)
407407
defer ctrl.Finish()
408408

409-
mockUtils := mocks.NewMockUtilsInterface(ctrl)
409+
mockUtils := mocks.NewMockOpenmvgoUtilsInterface(ctrl)
410410

411411
config := &openmvs.OpenMVSConfig{
412412
OutputDir: "",
@@ -439,7 +439,7 @@ func TestNewOpenMVSService_FailEnsureDir(t *testing.T) {
439439
ctrl := gomock.NewController(t)
440440
defer ctrl.Finish()
441441

442-
mockUtils := mocks.NewMockUtilsInterface(ctrl)
442+
mockUtils := mocks.NewMockOpenmvgoUtilsInterface(ctrl)
443443

444444
config := &openmvs.OpenMVSConfig{
445445
OutputDir: "/path/to/output",

0 commit comments

Comments
 (0)