~juju-qa/ubuntu/xenial/juju/2.0-rc2

« back to all changes in this revision

Viewing changes to src/github.com/juju/gomaasapi/interface_test.go

  • Committer: Nicholas Skaggs
  • Date: 2016-09-30 14:39:30 UTC
  • mfrom: (1.8.1)
  • Revision ID: nicholas.skaggs@canonical.com-20160930143930-vwwhrefh6ftckccy
import upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
152
152
 
153
153
type fakeSubnet struct {
154
154
        Subnet
155
 
        id int
 
155
        id   int
 
156
        cidr string
 
157
        vlan VLAN
156
158
}
157
159
 
158
160
func (f *fakeSubnet) ID() int {
159
161
        return f.id
160
162
}
161
163
 
 
164
func (f *fakeSubnet) CIDR() string {
 
165
        return f.cidr
 
166
}
 
167
 
 
168
func (f *fakeSubnet) VLAN() VLAN {
 
169
        return f.vlan
 
170
}
 
171
 
162
172
func (s *interfaceSuite) TestLinkSubnetArgs(c *gc.C) {
163
173
        for i, test := range []struct {
164
174
                args    LinkSubnetArgs