func BenchmarkInterspersedStarsEmptyMiddle(b *testing.B) {
	for i := 1; i <= 15; i++ {
		// Construct lhs and rhs with the same intersecting prefixes and suffixes,
		// such that they have i stars each and a mismatching character in the middle.
		prefixL, prefixR := interspersedStars((i / 2) + (i % 2))
		suffixL, suffixR := interspersedStars(i / 2)
		lhs := prefixL + "c" + suffixL
		rhs := prefixR + "d" + suffixR

		b.Run(fmt.Sprintf("with-%d-stars", i), func(b *testing.B) {
			_, err := NonEmpty(lhs, rhs)
			if err != nil {
				b.Error(err)
			}
		})
	}
}
// BenchmarkInterspersedStarsEmpty1 benchmarks two non-intersecting globs
// such that the mismatch is in the middle of both globs.
BenchmarkInterspersedStarsEmpty1 benchmarks two non-intersecting globs
such that the mismatch is in the middle of both globs.
// BenchmarkInterspersedStarsEmpty1 benchmarks two non - intersecting globs // such that the mismatch is in the middle of both globs .
func BenchmarkInterspersedStarsEmptyMiddle(b *testing.B) {
	for i := 1; i <= 15; i++ {
		prefixL, prefixR := interspersedStars((i / 2) + (i % 2))
		suffixL, suffixR := interspersedStars(i / 2)
		lhs := prefixL + "c" + suffixL
		rhs := prefixR + "d" + suffixR
		b.Run(fmt.Sprintf("with-%d-stars", i), func(b *testing.B) {
			_, err := NonEmpty(lhs, rhs)
			if err != nil {
				b.Error(err)
			}
		})
	}
}
func BenchmarkInterspersedStarsEmptyMiddle ( b * testing . B ) { for i := 1 ; i <= 15 ; i ++ { prefixL , prefixR := interspersedStars ( ( i / 2 ) + ( i % 2 ) ) suffixL , suffixR := interspersedStars ( i / 2 ) lhs := prefixL + " " + suffixL rhs := prefixR + " " + suffixR b . Run ( fmt . Sprintf ( " " , i ) , func ( b * testing . B ) { _ , err := NonEmpty ( lhs , rhs ) if err != nil { b . Error ( err ) } } ) } }
BenchmarkInterspersedStarsEmpty1 benchmarks two non-intersecting globs
such that the mismatch is in the middle of both globs.
BenchmarkInterspersedStarsEmpty1 benchmarks two non - intersecting globs such that the mismatch is in the middle of both globs .
// Construct lhs and rhs with the same intersecting prefixes and suffixes, // such that they have i stars each and a mismatching character in the middle.