// untested sections: 2packagematchersimport("fmt""github.com/onsi/gomega/format")typeBeTrueMatcherstruct{}func(matcher*BeTrueMatcher)Match(actualinterface{})(successbool,errerror){if!isBool(actual){returnfalse,fmt.Errorf("Expected a boolean. Got:\n%s",format.Object(actual,1))}returnactual.(bool),nil}func(matcher*BeTrueMatcher)FailureMessage(actualinterface{})(messagestring){returnformat.Message(actual,"to be true")}func(matcher*BeTrueMatcher)NegatedFailureMessage(actualinterface{})(messagestring){returnformat.Message(actual,"not to be true")}