crates/gunnar-monetize-guest/tests/the_build_reference.rs
//! **The plugin is gunnar's own build.** `build.rs` stamps the module with gunnar's build
//! reference. (The proto and path tests went with the guest's network half in monetize v2.0 P2
//! 12.5 and T13: the guest dials no gunnar RPC and compiles no proto.)
use gunnar_monetize_guest as guest;
/// **The plugin carries the build reference gunnar-server carries** — the
/// same `git describe`, computed the same way in the same checkout. This is
/// what lets gunnar-server refuse a plugin that is not its own build.
#[test]
fn the_plugin_is_stamped_with_gunnars_own_build_reference() {
assert_eq!(guest::BUILD_REF, gunnar_common::BUILD_REF);
assert_eq!(guest::BUILD_REF_SECTION, "gunnar_build_ref");
}