{"action":"created","issue":{"url":"https://api.github.com/repos/onsi/gomega/issues/184","repository_url":"https://api.github.com/repos/onsi/gomega","labels_url":"https://api.github.com/repos/onsi/gomega/issues/184/labels{/name}","comments_url":"https://api.github.com/repos/onsi/gomega/issues/184/comments","events_url":"https://api.github.com/repos/onsi/gomega/issues/184/events","html_url":"https://github.com/onsi/gomega/issues/184","id":186097321,"number":184,"title":"a matcher that applies a predicate to all members of a slice/array/other collection, folding with AND","user":{"login":"jraqula","id":4714857,"avatar_url":"https://avatars.githubusercontent.com/u/4714857?v=3","gravatar_id":"","url":"https://api.github.com/users/jraqula","html_url":"https://github.com/jraqula","followers_url":"https://api.github.com/users/jraqula/followers","following_url":"https://api.github.com/users/jraqula/following{/other_user}","gists_url":"https://api.github.com/users/jraqula/gists{/gist_id}","starred_url":"https://api.github.com/users/jraqula/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jraqula/subscriptions","organizations_url":"https://api.github.com/users/jraqula/orgs","repos_url":"https://api.github.com/users/jraqula/repos","events_url":"https://api.github.com/users/jraqula/events{/privacy}","received_events_url":"https://api.github.com/users/jraqula/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":11,"created_at":"2016-10-29T19:47:29Z","updated_at":"2016-11-03T00:57:33Z","closed_at":null,"body":"If I have something like:\n\n```\ntype A interface {\n    Field() string\n}\n\nvar b []A\n// populate b ...\n```\n\nI would like to be able to write an assertion that is something like:\n\n```\nExpect(b).To(OnlyContain(WithTransform(A.Field), Equal(\"entry\")))\n```\n\nwhich would pass if and only if every element of `b` returns \"entry\" when called `Field()`. Is there a current way to do this with existing matchers? If not, what do you all think of this as an addition?\n"},"comment":{"url":"https://api.github.com/repos/onsi/gomega/issues/comments/258043756","html_url":"https://github.com/onsi/gomega/issues/184#issuecomment-258043756","issue_url":"https://api.github.com/repos/onsi/gomega/issues/184","id":258043756,"user":{"login":"timstclair","id":3272040,"avatar_url":"https://avatars.githubusercontent.com/u/3272040?v=3","gravatar_id":"","url":"https://api.github.com/users/timstclair","html_url":"https://github.com/timstclair","followers_url":"https://api.github.com/users/timstclair/followers","following_url":"https://api.github.com/users/timstclair/following{/other_user}","gists_url":"https://api.github.com/users/timstclair/gists{/gist_id}","starred_url":"https://api.github.com/users/timstclair/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timstclair/subscriptions","organizations_url":"https://api.github.com/users/timstclair/orgs","repos_url":"https://api.github.com/users/timstclair/repos","events_url":"https://api.github.com/users/timstclair/events{/privacy}","received_events_url":"https://api.github.com/users/timstclair/received_events","type":"User","site_admin":false},"created_at":"2016-11-03T00:57:33Z","updated_at":"2016-11-03T00:57:33Z","body":"I think `Ignore*` could be interpretted as ignoring (i.e. not matching) additional elements, so I agree Allow is better.\r\n\r\n`AllowDuplicates` is a little less wordy."}}
{"actor":{"display_login":"timstclair"}}