Skip to content

Commit

Permalink
Generate fakes for Installation interface
Browse files Browse the repository at this point in the history
Uses counterfeiter to generate fakes for installation.Installation
interface. Previously, only this fake struct was hand-written in
cmd/cmdfakes. This change makes the generation automated and consistent
with others.

Signed-off-by: Kenneth Lakin <[email protected]>
  • Loading branch information
rajathagasthya authored and klakin-pivotal committed Sep 10, 2024
1 parent ce80d75 commit 37d16b4
Show file tree
Hide file tree
Showing 2 changed files with 159 additions and 5 deletions.
3 changes: 3 additions & 0 deletions bin/gen-fakes
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ counterfeiter director FileReporter
counterfeiter director TaskReporter
counterfeiter director Event

# FakeInstallation is generated in cmd/cmdfakes because that's where it's used
counterfeiter -o cmd/cmdfakes installation Installation

counterfeiter uaa UAA
counterfeiter uaa Token
counterfeiter uaa AccessToken
Expand Down
161 changes: 156 additions & 5 deletions cmd/cmdfakes/fake_installation.go

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

0 comments on commit 37d16b4

Please sign in to comment.