Re: [PATCH v2 2/8] trailer: add unit tests for trailer iterator
"Linus Arver via GitGitGadget" <gitgitgadget@gmail.com> writes:
Show 11 quoted lines
> From: Linus Arver <linusa@google.com>
>
> [...]
>
> + {
> + "with non-trailer lines (only 1) in trailer block, but no Git-generated trailers",
> + "subject: foo bar\n"
> + "\n"
> + /*
> + * This block has only 1 non-trailer out of 10 (IOW, 90%
> + * trailers) but is not considered a trailer because thes/a trailer/a trailer block
Show 16 quoted lines
> + * 25% threshold only applies to cases where there was a
> + * Git-generated trailer (see git_generated_prefixes[]
> + * in trailer.c).
> + */
> + "Reviewed-by: x\n"
> + "Reviewed-by: x\n"
> + "Reviewed-by: x\n"
> + "Helped-by: x\n"
> + "Helped-by: x\n"
> + "Helped-by: x\n"
> + "Acked-by: x\n"
> + "Acked-by: x\n"
> + "Acked-by: x\n"
> + "not a trailer line\n",
> + 0
> + },