Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add generate-sequential make target #259

Merged
merged 3 commits into from
Mar 28, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
make generate-sequential
  • Loading branch information
petersutter committed Mar 27, 2023
commit ba0f7fa1f8bf44e4bd625269190fc5c15c06fba1
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