mirror of
https://github.com/ceph/go-ceph
synced 2024-12-18 20:35:33 +00:00
ab7955a236
Add unit and simplistic functional tests for new JSON/status description extraction functions. Because these are preview functions we also add a stub file to add a no-op function to be built on non-preview builds. This avoids having to reimplement large parts of the existing mirroring tests just to validate this small aspect of the SiteMirrorImageStatus struct. Signed-off-by: John Mulligan <jmulligan@redhat.com>
15 lines
360 B
Go
15 lines
360 B
Go
//go:build !nautilus && !ceph_preview
|
|
// +build !nautilus,!ceph_preview
|
|
|
|
package rbd
|
|
|
|
import (
|
|
"testing"
|
|
)
|
|
|
|
// testDescriptionReplayStatus is a stub function that exists only to be
|
|
// compiled as a near no-op on non ceph_preview builds.
|
|
func testDescriptionReplayStatus(t *testing.T, _ SiteMirrorImageStatus) {
|
|
t.Log("not testing DescriptionReplayStatus")
|
|
}
|