go-ceph/rbd/mirror_stub_test.go
John Mulligan ab7955a236 rbd: add tests for DescriptionReplayStatus and UnmarshalDescriptionJSON
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>
2023-03-17 18:10:53 +00:00

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")
}