File: package_test.go

package info (click to toggle)
golang-github-juju-utils 0.0~git20171220.f38c0b0-6
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,748 kB
  • sloc: makefile: 20
file content (36 lines) | stat: -rw-r--r-- 562 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// Copyright 2014 Canonical Ltd.
// Licensed under the LGPLv3, see LICENCE file for details.

package set_test

import (
	"testing"

	gc "gopkg.in/check.v1"
	"gopkg.in/juju/names.v2"

	"github.com/juju/utils/set"
)

func TestPackage(t *testing.T) {
	gc.TestingT(t)
}

type baseSet interface {
	Size() int
	IsEmpty() bool
}

type tagSet interface {
	Add(names.Tag)
	Remove(names.Tag)
	Contains(names.Tag) bool
	Values() []names.Tag
	SortedValues() []names.Tag

	Union(set.Tags) set.Tags
	Intersection(set.Tags) set.Tags
	Difference(set.Tags) set.Tags

	baseSet
}