Skip to content

Commit b01615a

Browse files
committed
fix: fix tests
1 parent 72377dd commit b01615a

9 files changed

Lines changed: 20 additions & 20 deletions

File tree

cmd/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ THE SOFTWARE.
2222
package main
2323

2424
import (
25-
"github.com/robwillup/retros/internal/cmd"
25+
"github.com/robwillup/retros/internal/commands"
2626
)
2727

2828
func main() {
29-
cmd.Execute()
29+
commands.Execute()
3030
}

internal/checksum/calculator_test.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ import "testing"
55
//goland:noinspection SpellCheckingInspection
66
var checksum = ROM{
77
Name: "main.go",
8-
MD5: "28766063f362c5d97e2288f3a3be3e78",
9-
SHA1: "6c3c98f00928520e80efcb2aa1cb8a11ba0f5d6f",
10-
SHA256: "14ae8e67feedb5c9f2bae2d21d9b87260ec6922c6717210da39fe7b4e401d043",
11-
Size: 1168,
8+
MD5: "7fbd5e9ea3b5f622ba3a3e47badee8fe",
9+
SHA1: "58598c1f53f58075ea7ec7e35114b4ddaf8b671b",
10+
SHA256: "e74d549319164be4084c0d22f3e1b5b6cf3356c6ad8ea843521a39565d0f33c0",
11+
Size: 1174,
1212
}
1313

1414
func TestCalcChecksum(t *testing.T) {
15-
actual, err := CalcChecksum("../../main.go")
15+
actual, err := CalcChecksum("../../cmd/main.go")
1616

1717
if err != nil {
1818
t.Fatalf("Failed to TestCalcChecksum().\nError: %v\n", err)
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ You should have received a copy of the GNU General Public License
1515
along with this program. If not, see <http://www.gnu.org/licenses/>.
1616
*/
1717

18-
// Package cmd handles CLI commands
19-
package cmd
18+
// Package commands handles CLI commands
19+
package commands
2020

2121
import (
2222
"errors"
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ You should have received a copy of the GNU General Public License
1515
along with this program. If not, see <http://www.gnu.org/licenses/>.
1616
*/
1717

18-
// Package cmd handles CLI commands.
19-
package cmd
18+
// Package commands handles CLI commands.
19+
package commands
2020

2121
import (
2222
"fmt"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ GNU General Public License for more details.
1414
You should have received a copy of the GNU General Public License
1515
along with this program. If not, see <http://www.gnu.org/licenses/>.
1616
*/
17-
package cmd
17+
package commands
1818

1919
import (
2020
"fmt"
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package cmd
1+
package commands
22

33
import (
44
"fmt"
@@ -27,18 +27,18 @@ retros ls emulator --all Lists all emulator systems.`,
2727
all, err := cmd.Flags().GetBool("all")
2828

2929
if err != nil {
30-
log.Fatalf("Failed to get ls emulator flags: Error %t\n", err)
30+
log.Fatalf("Failed to get ls emulator flags: Error %t", err)
3131
}
3232

33-
fmt.Println("Looking for emulator systems on the target machine ...\n")
33+
fmt.Println("Looking for emulator systems on the target machine ...")
3434

3535
output, err := listEmulators(all)
3636

3737
if err != nil {
3838
log.Fatalf("Failed to list emulators: Error %t\n", err)
3939
}
4040

41-
fmt.Println("Emulator systems found:\n")
41+
fmt.Println("Emulator systems found:")
4242
fmt.Println(output)
4343
},
4444
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ GNU General Public License for more details.
1414
You should have received a copy of the GNU General Public License
1515
along with this program. If not, see <http://www.gnu.org/licenses/>.
1616
*/
17-
package cmd
17+
package commands
1818

1919
import (
2020
"fmt"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ GNU General Public License for more details.
1414
You should have received a copy of the GNU General Public License
1515
along with this program. If not, see <http://www.gnu.org/licenses/>.
1616
*/
17-
package cmd
17+
package commands
1818

1919
import (
2020
"fmt"
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ You should have received a copy of the GNU General Public License
1515
along with this program. If not, see <http://www.gnu.org/licenses/>.
1616
*/
1717

18-
// Package cmd abstracts CLI commands
19-
package cmd
18+
// Package commands abstracts CLI commands
19+
package commands
2020

2121
import (
2222
"fmt"

0 commit comments

Comments
 (0)