Skip to content

Commit

Permalink
Add code that would break ent if merged prior to stubmaker (#21634)
Browse files Browse the repository at this point in the history
  • Loading branch information
ncabatoff authored Jul 6, 2023
1 parent 15b5dd0 commit 502c283
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
13 changes: 13 additions & 0 deletions vault/test_stubmaker.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0

package vault

import (
"github.com/hashicorp/vault/vault/cluster"
)

func test() {
testStubmaker(cluster.Listener{})
testStubmaker2()
}
16 changes: 16 additions & 0 deletions vault/test_stubmaker_oss.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0

//go:build !enterprise

package vault

import (
"github.com/hashicorp/vault/vault/cluster"
"github.com/hashicorp/vault/vault/seal"
)

//go:generate go run github.com/hashicorp/vault/tools/stubmaker

func testStubmaker(_ cluster.Listener) {}
func testStubmaker2() *seal.Envelope { return nil }

0 comments on commit 502c283

Please sign in to comment.