Merge lp:~rvb/gwacl/testing-utility into lp:gwacl
Proposed by
Raphaël Badin
Status: | Merged |
---|---|
Approved by: | Raphaël Badin |
Approved revision: | 112 |
Merged at revision: | 112 |
Proposed branch: | lp:~rvb/gwacl/testing-utility |
Merge into: | lp:gwacl |
Diff against target: |
52 lines (+43/-0) 2 files modified
testing.go (+18/-0) testing_test.go (+25/-0) |
To merge this branch: | bzr merge lp:~rvb/gwacl/testing-utility |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Gavin Panella | Approve | ||
Review via email: mp+170078@code.launchpad.net |
Commit message
Add testing utility.
Description of the change
This utility is there to let libraries using gwacl (for instance the Azure provider in juju-core) create testing StorageContext objects.
To post a comment you must log in.
[1]
+func CreateTestStora geContext( client *http.Client) *StorageContext {
The prefix is usually "New" in Go instead of "Create". I'm not bothered either way, as long as it's consistent with what's there already, or, failing that, consistent with Go convention.