OLD | NEW |
1 // Copyright 2011, 2012, 2013 Canonical Ltd. | 1 // Copyright 2011, 2012, 2013 Canonical Ltd. |
2 // Licensed under the AGPLv3, see LICENCE file for details. | 2 // Licensed under the AGPLv3, see LICENCE file for details. |
3 | 3 |
4 package charm_test | 4 package charm_test |
5 | 5 |
6 import ( | 6 import ( |
7 "bytes" | 7 "bytes" |
8 "fmt" | 8 "fmt" |
9 "io" | 9 "io" |
10 "io/ioutil" | 10 "io/ioutil" |
(...skipping 491 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
502 c.Assert(r.IsImplicit(), gc.Equals, t.implicit) | 502 c.Assert(r.IsImplicit(), gc.Equals, t.implicit) |
503 } | 503 } |
504 } | 504 } |
505 | 505 |
506 type dummyCharm struct{} | 506 type dummyCharm struct{} |
507 | 507 |
508 func (c *dummyCharm) Config() *charm.Config { | 508 func (c *dummyCharm) Config() *charm.Config { |
509 panic("unused") | 509 panic("unused") |
510 } | 510 } |
511 | 511 |
| 512 func (c *dummyCharm) Actions() *charm.Actions { |
| 513 panic("unused") |
| 514 } |
| 515 |
512 func (c *dummyCharm) Revision() int { | 516 func (c *dummyCharm) Revision() int { |
513 panic("unused") | 517 panic("unused") |
514 } | 518 } |
515 | 519 |
516 func (c *dummyCharm) Meta() *charm.Meta { | 520 func (c *dummyCharm) Meta() *charm.Meta { |
517 return &charm.Meta{ | 521 return &charm.Meta{ |
518 Provides: map[string]charm.Relation{ | 522 Provides: map[string]charm.Relation{ |
519 "pro": {Interface: "ifce-pro", Scope: charm.ScopeGlobal}
, | 523 "pro": {Interface: "ifce-pro", Scope: charm.ScopeGlobal}
, |
520 }, | 524 }, |
521 Requires: map[string]charm.Relation{ | 525 Requires: map[string]charm.Relation{ |
522 "req": {Interface: "ifce-req", Scope: charm.ScopeGlobal
}, | 526 "req": {Interface: "ifce-req", Scope: charm.ScopeGlobal
}, |
523 "info": {Interface: "juju-info", Scope: charm.ScopeConta
iner}, | 527 "info": {Interface: "juju-info", Scope: charm.ScopeConta
iner}, |
524 }, | 528 }, |
525 Peers: map[string]charm.Relation{ | 529 Peers: map[string]charm.Relation{ |
526 "peer": {Interface: "ifce-peer", Scope: charm.ScopeGloba
l}, | 530 "peer": {Interface: "ifce-peer", Scope: charm.ScopeGloba
l}, |
527 }, | 531 }, |
528 } | 532 } |
529 } | 533 } |
OLD | NEW |