← every case · 1000 · comments

1010-code_then_comment_on_one_line

a line holding both code and a comment is code

read ascloc.defaultmezura.contentmezura.regionscc.defaulttokei.default
input.c
1codeint x = 1; // a line that is both
2codeint y = 2;

stringcommentthe tag around another language

What each tool answered

cloc.default ✓ agrees
the rules ask2 lines · 0 blanks · 2 code · 0 comments
it answers2 lines · 0 blanks · 2 code · 0 comments

cloc --json cases/1000-comments/1010-code_then_comment_on_one_line/input.c

mezura.content ✓ agrees
the rules ask2 lines · 2 code · 0 comments · 0 extra
it answers2 lines · 2 code · 0 comments · 0 extra

mezura cases/1000-comments/1010-code_then_comment_on_one_line/input.c --output json --hide timing --counting content

mezura.region ✓ agrees
the rules ask2 lines · 0 blanks · 2 code · 0 comments
it answers2 lines · 0 blanks · 2 code · 0 comments

mezura cases/1000-comments/1010-code_then_comment_on_one_line/input.c --output json --hide timing --counting region

scc.default ✓ agrees
the rules ask2 lines · 0 blanks · 2 code · 0 comments
it answers2 lines · 0 blanks · 2 code · 0 comments

scc --format json cases/1000-comments/1010-code_then_comment_on_one_line/input.c

tokei.default ✓ agrees
the rules ask2 lines · 0 blanks · 2 code · 0 comments
it answers2 lines · 0 blanks · 2 code · 0 comments

tokei --output json cases/1000-comments/1010-code_then_comment_on_one_line/input.c