package helpers

import "github.com/cucumber/messages-go/v10"

// hasTag indicates whether the given feature has a tag with the given name.
func HasTag(scenario *messages.Pickle, name string) bool {
	for _, tag := range scenario.GetTags() {
		if tag.Name == name {
			return true
		}
	}
	return false
}
