|
| 1 | +# Licensed to the Apache Software Foundation (ASF) under one or more |
| 2 | +# contributor license agreements. See the NOTICE file distributed with |
| 3 | +# this work for additional information regarding copyright ownership. |
| 4 | +# The ASF licenses this file to You under the Apache License, Version 2.0 |
| 5 | +# (the "License"); you may not use this file except in compliance with |
| 6 | +# the License. You may obtain a copy of the License at |
| 7 | +# |
| 8 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | +# |
| 10 | +# Unless required by applicable law or agreed to in writing, software |
| 11 | +# distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | +# See the License for the specific language governing permissions and |
| 14 | +# limitations under the License. |
| 15 | + |
| 16 | +# mockery v3 configuration for the ./core tree. |
| 17 | +# |
| 18 | +# Replaces the v2 command line |
| 19 | +# mockery --recursive --keeptree --dir=./core --output=./mocks/core \ |
| 20 | +# --unroll-variadic=false --name='.*' |
| 21 | +# and reproduces the exact same layout: backend/mocks/core/<pkg>/<Interface>.go |
| 22 | +# with package name `mocks` and an un-prefixed mock struct name. |
| 23 | +# |
| 24 | +# NOTE: this config is deliberately kept separate from `.mockery.helpers.yml`. |
| 25 | +# `helpers/unithelper` imports the generated `mocks/core/...` packages, so the |
| 26 | +# core mocks have to exist before the helpers tree can be type-checked by |
| 27 | +# mockery v3 (which, unlike v2, loads packages via go/packages). |
| 28 | +all: true |
| 29 | +recursive: true |
| 30 | +template: testify |
| 31 | +dir: "mocks/{{.InterfaceDirRelative}}" |
| 32 | +filename: "{{.InterfaceName}}.go" |
| 33 | +pkgname: "mocks" |
| 34 | +structname: "{{.InterfaceName}}" |
| 35 | +template-data: |
| 36 | + unroll-variadic: false |
| 37 | +packages: |
| 38 | + github.com/apache/incubator-devlake/core: |
0 commit comments