Remote unused cruft file (#1112)

In 8e7147f4, it seems that proxy/assert_macro was committed erroneously.

This change removes this unused file.
This commit is contained in:
Oliver Gould 2018-06-12 15:42:11 -07:00 committed by GitHub
parent 65585699b6
commit 4b4ab806d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 29 deletions

View File

@ -1,29 +0,0 @@
macro_rules! assert_metrics {
(
$metrics:ident,
$label_1:ident = $value_1:ident,
$($label_n:ident = $value_n:ident),*
=> $($rest:tt)+
) => {
assert_metrics!(@inner $metrics,
concat!(
stringify!($label_1), "=\"", stringify!($value_1), "\"",
$(",", stringify!($label_n), "=\"", stringify!($value_n), "\""),*,
) => $($rest)+
);
};
(@inner $metrics:ident, $labels:expr =>
$($metric_name:ident = $metric_value:expr),+) => {
$(
assert_contains!(
$metrics.get("/metrics"),
concat!(
stringify!($metric_name),
"{", $labels, "} ",
stringify!($metric_value)
)
);
)+
};
}