4 Commits

Author SHA1 Message Date
Samuele Pedroni
bcbf8edafd osutil,strutil,testutil: fix imports order (according to gci) 2021-06-15 18:04:44 +02:00
Ian Johnson
902b295b37 osutil/many: make all test pkgs osutil_test instead of "osutil"
Also add some mocking functions in order to properly test things.

Signed-off-by: Ian Johnson <ian.johnson@canonical.com>
2021-01-28 16:33:56 -06:00
Zygmunt Krynicki
d6df05b0ca many: fix ineffectal assignments of err
This patch corrects a number of issues that have the form of:

    err := ...
    c.Check(err, IsNil)
    ...
    err = ...
    // err is not used again

That is, the last assignment of err is never used again and in practice
the error is not checked.

Thanks to https://github.com/gordonklaus/ineffassign

Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
2016-11-22 15:48:48 +01:00
Michael Vogt
6d9c09c1e0 add missing tests 2016-02-29 17:34:04 +01:00