cleanup moved errors

Signed-off-by: George Jenkins <gvjenkins@gmail.com>
pull/13598/head
George Jenkins 9 months ago
parent 07d58b5c1c
commit 0cc55864f0

@ -20,20 +20,6 @@ import (
"fmt"
)
// ErrNoTable indicates that a chart does not have a matching table.
type ErrNoTable struct {
Key string
}
func (e ErrNoTable) Error() string { return fmt.Sprintf("%q is not a table", e.Key) }
// ErrNoValue indicates that Values does not contain a key with a value
type ErrNoValue struct {
Key string
}
func (e ErrNoValue) Error() string { return fmt.Sprintf("%q is not a value", e.Key) }
type ErrInvalidChartName struct {
Name string
}

@ -15,23 +15,3 @@ limitations under the License.
*/
package chartutil
import (
"testing"
)
func TestErrorNoTableDoesNotPanic(t *testing.T) {
x := "empty"
y := ErrNoTable{x}
t.Logf("error is: %s", y)
}
func TestErrorNoValueDoesNotPanic(t *testing.T) {
x := "empty"
y := ErrNoValue{x}
t.Logf("error is: %s", y)
}

Loading…
Cancel
Save