We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 05d71ca commit 937b6dbCopy full SHA for 937b6db
src/metrics/nom.rs
@@ -240,6 +240,25 @@ mod tests {
240
);
241
}
242
243
+ #[test]
244
+ fn c_nom() {
245
+ check_metrics!(
246
+ "int foo();
247
+
248
+ int foo() {
249
+ return 0;
250
+ }",
251
+ "foo.c",
252
+ CppParser,
253
+ nom,
254
+ [
255
+ (functions, 1, usize),
256
+ (closures, 0, usize),
257
+ (total, 1, usize)
258
+ ]
259
+ );
260
+ }
261
262
#[test]
263
fn cpp_nom() {
264
check_metrics!(
0 commit comments