forked from redhat-developer/odo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmockgen.sh
executable file
·105 lines (78 loc) · 2.86 KB
/
mockgen.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
#!/usr/bin/env bash
# Use this script to regenerate generated mock files
# after changing signatures of interfaces in these packages
gomockVersion=$(go list -mod=readonly -m -f '{{.Version}}' github.com/golang/mock)
mockgen="go run -mod=readonly github.com/golang/mock/mockgen@$gomockVersion"
echo Using mockgen "$($mockgen --version)"
$mockgen -source=pkg/kclient/interface.go \
-package kclient \
-destination pkg/kclient/mock_Client.go
$mockgen -source=pkg/storage/storage.go \
-package storage \
-destination pkg/storage/mock_Client.go
$mockgen -source=pkg/devfile/image/image.go \
-package image \
-destination pkg/devfile/image/mock_Backend.go
$mockgen -source=pkg/odo/cmdline/cmdline.go \
-package cmdline \
-destination pkg/odo/cmdline/mock.go
$mockgen -source=pkg/project/project.go \
-package project \
-destination pkg/project/mock.go
$mockgen -source=pkg/preference/preference.go \
-package preference \
-destination pkg/preference/mock.go
$mockgen -source=pkg/auth/interface.go \
-package auth \
-destination pkg/auth/mock.go
$mockgen -source=pkg/init/backend/interface.go \
-package backend \
-destination pkg/init/backend/mock.go
$mockgen -source=pkg/init/asker/interface.go \
-package asker \
-destination pkg/init/asker/mock.go
$mockgen -source=pkg/init/interface.go \
-package init \
-destination pkg/init/mock.go
$mockgen -source=pkg/registry/interface.go \
-package registry \
-destination pkg/registry/mock.go
$mockgen -source=pkg/deploy/interface.go \
-package deploy \
-destination pkg/deploy/mock.go
$mockgen -source=pkg/libdevfile/libdevfile.go \
-package libdevfile \
-destination pkg/libdevfile/handler_mock.go
$mockgen -source=pkg/watch/interface.go \
-package watch \
-destination pkg/watch/mock.go
$mockgen -source=pkg/component/delete/interface.go \
-package delete \
-destination pkg/component/delete/mock.go
$mockgen -source=pkg/dev/interface.go \
-package dev \
-destination pkg/dev/mock.go
$mockgen -source=pkg/alizer/interface.go \
-package alizer \
-destination pkg/alizer/mock.go
$mockgen -source=pkg/binding/interface.go \
-package binding \
-destination pkg/binding/mock.go
$mockgen -source=pkg/binding/backend/interface.go \
-package backend \
-destination pkg/binding/backend/mock.go
$mockgen -source=pkg/sync/interface.go \
-package sync \
-destination pkg/sync/mock.go
$mockgen -source=pkg/exec/interface.go \
-package exec \
-destination pkg/exec/mock.go
$mockgen -source=pkg/podman/interface.go \
-package podman \
-destination pkg/podman/mock.go
$mockgen -source=pkg/configAutomount/interface.go \
-package configAutomount \
-destination pkg/configAutomount/mock.go
$mockgen -source=pkg/platform/interface.go \
-package platform \
-destination pkg/platform/mock.go