mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-12-25 23:49:37 -05:00
25 lines
497 B
Go
25 lines
497 B
Go
//go:build disable_tpm_simulator
|
|
|
|
package simulator
|
|
|
|
import (
|
|
"io"
|
|
"testing"
|
|
|
|
"go.uber.org/goleak"
|
|
)
|
|
|
|
func TestMain(m *testing.M) {
|
|
goleak.VerifyTestMain(m)
|
|
}
|
|
|
|
// OpenSimulatedTPM returns a simulated TPM device.
|
|
func OpenSimulatedTPM() (io.ReadWriteCloser, error) {
|
|
panic("simulator not enabled")
|
|
}
|
|
|
|
// NewSimulatedTPMOpenFunc returns a TPMOpenFunc that opens a simulated TPM.
|
|
func NewSimulatedTPMOpenFunc() (func() (io.ReadWriteCloser, error), io.Closer) {
|
|
panic("simulator not enabled")
|
|
}
|