Skip to content

Commit

Permalink
added fake code for NodeInfo as well (#118)
Browse files Browse the repository at this point in the history
Signed-off-by: Arashad Ahamad <[email protected]>
  • Loading branch information
arahamad authored Sep 10, 2024
1 parent 5852e40 commit 194c19a
Show file tree
Hide file tree
Showing 2 changed files with 118 additions and 1 deletion.
117 changes: 117 additions & 0 deletions pkg/metadata/fake/fake_node_info.go

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

2 changes: 1 addition & 1 deletion pkg/metadata/metadata.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ import (
)

// NodeMetadata is a fakeable interface exposing necessary data
//go:generate counterfeiter -o fake_node_metadata.go --fake-name FakeNodeMetadata . NodeMetadata
type NodeMetadata interface {
// GetZone ...
GetZone() string
Expand All @@ -53,6 +52,7 @@ type nodeMetadataManager struct {
}

// NodeInfo ...
//go:generate counterfeiter -o fake/fake_node_info.go --fake-name FakeNodeInfo . NodeInfo
type NodeInfo interface {
NewNodeMetadata(logger *zap.Logger) (NodeMetadata, error)
}
Expand Down

0 comments on commit 194c19a

Please sign in to comment.