gomega icon indicating copy to clipboard operation
gomega copied to clipboard

[nice to have] Would be very nice to have a `BeAnArray` matcher

Open eriknyk opened this issue 3 years ago • 1 comments

Would be very nice to have a BeAnArray matcher since we have similar Matchers like

.Should(BeADirectory())
.Should(BeARegularFile())
.Should(BeEmpty())

Would be Nice

.Should(BeAnArray(...))

This can be helpful when a variable has type any = interface{} it can be help to identify if the variable type is an expected array


Best Regards.

eriknyk avatar Sep 01 '22 03:09 eriknyk

Hey there - happy to accept a PR for this if you have the bandwidth to put one together.

onsi avatar Sep 01 '22 19:09 onsi