// untested sections: 2packagematchersimport("fmt""github.com/onsi/gomega/format")typeBeEmptyMatcherstruct{}func(matcher*BeEmptyMatcher)Match(actualinterface{})(successbool,errerror){length,ok:=lengthOf(actual)if!ok{returnfalse,fmt.Errorf("BeEmpty matcher expects a string/array/map/channel/slice. Got:\n%s",format.Object(actual,1))}returnlength==0,nil}func(matcher*BeEmptyMatcher)FailureMessage(actualinterface{})(messagestring){returnformat.Message(actual,"to be empty")}func(matcher*BeEmptyMatcher)NegatedFailureMessage(actualinterface{})(messagestring){returnformat.Message(actual,"not to be empty")}