File: negation_generic.go

package info (click to toggle)
golang-github-cheekybits-genny 1.0.0-8
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 336 kB
  • sloc: makefile: 17; sh: 3
file content (19 lines) | stat: -rw-r--r-- 400 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package bugreports

import "github.com/cheekybits/genny/generic"

type SomeThing generic.Type

func ContainsSomeThing(slice []SomeThing, element SomeThing) bool {
	return false
}

// ContainsAllSomeThing targets github issue 36
func ContainsAllSomeThing(slice []SomeThing, other []SomeThing) bool {
	for _, e := range other {
		if !ContainsSomeThing(slice, e) {
			return false
		}
	}
	return true
}