Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(416)

Side by Side Diff: charm/meta_test.go

Issue 99640044: Actions() added to Charm interface
Patch Set: Actions() added to Charm interface Created 10 years, 10 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « charm/dir_test.go ('k') | charm/repo_test.go » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « charm/dir_test.go ('k') | charm/repo_test.go » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b