From: Linus Arver Date: Fri, 19 Apr 2024 18:46:59 GMT Subject: Re: [PATCH v2 2/8] trailer: add unit tests for trailer iterator Message-ID: In-Reply-To: "Linus Arver via GitGitGadget" writes: > From: Linus Arver > > [...] > > + { > + "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 the s/a trailer/a trailer block > + * 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 > + },