Skip to content

Commit

Permalink
make generate-sequential
Browse files Browse the repository at this point in the history
  • Loading branch information
petersutter committed Mar 27, 2023
1 parent a0510fe commit ba0f7fa
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 51 deletions.
16 changes: 3 additions & 13 deletions hack/generate.sh
Original file line number Diff line number Diff line change
@@ -1,18 +1,8 @@
#!/usr/bin/env bash

# SPDX-FileCopyrightText: 2023 SAP SE or an SAP affiliate company and Gardener contributors
#
# Copyright (c) 2023 SAP SE or an SAP affiliate company. All rights reserved. This file is licensed under the Apache Software License, v. 2 except as noted otherwise in the LICENSE file
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# SPDX-License-Identifier: Apache-2.0

set -e

Expand Down
58 changes: 22 additions & 36 deletions pkg/cmd/base/mocks/mock_options.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions pkg/cmd/base/options_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ bar:
var (
ctrl *gomock.Controller
mockFactory *utilmocks.MockFactory
mockOptions *basemocks.MockCommandOptions
mockOptions *basemocks.MockRunnable
runE func(cmd *cobra.Command, args []string) error
cmd *cobra.Command
args []string
Expand All @@ -131,7 +131,7 @@ bar:

BeforeEach(func() {
ctrl = gomock.NewController(GinkgoT())
mockOptions = basemocks.NewMockCommandOptions(ctrl)
mockOptions = basemocks.NewMockRunnable(ctrl)
mockFactory = utilmocks.NewMockFactory(ctrl)
cmd = &cobra.Command{}
args = []string{"foo", "bar"}
Expand Down

0 comments on commit ba0f7fa

Please sign in to comment.