github.com/juju/juju@v0.0.0-20240430160146-1752b71fcf00/worker/uniter/runner/jujuc/jujuctesting/resources.go (about) 1 // Copyright 2022 Canonical Ltd. 2 // Licensed under the AGPLv3, see LICENCE file for details. 3 4 package jujuctesting 5 6 // ContextResources is a test double for jujuc.ContextResources. 7 type ContextResources struct { 8 contextBase 9 } 10 11 // DownloadResource implements jujuc.ContextResources. 12 func (c *ContextRelations) DownloadResource(resourceName string) (string, error) { 13 c.stub.AddCall("DownloadResource", resourceName) 14 return "/path/to/" + resourceName, nil 15 }