From c98c1e7a71608028ddeeb041bc3576fd3e8632f9 Mon Sep 17 00:00:00 2001 From: Ruidy Nemausat Date: Wed, 20 Oct 2021 13:53:25 +0200 Subject: [PATCH] move tests --- cmd/new.go | 3 ++- main_test.go => passGen/passGen_test.go | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) rename main_test.go => passGen/passGen_test.go (97%) diff --git a/cmd/new.go b/cmd/new.go index b24bef6..fa8c95f 100644 --- a/cmd/new.go +++ b/cmd/new.go @@ -1,9 +1,10 @@ package cmd import ( + "log" + "github.com/fatih/color" "github.com/spf13/cobra" - "log" "password-generator/passGen" ) diff --git a/main_test.go b/passGen/passGen_test.go similarity index 97% rename from main_test.go rename to passGen/passGen_test.go index 3de86fb..b99faf9 100644 --- a/main_test.go +++ b/passGen/passGen_test.go @@ -1,10 +1,11 @@ -package main +package passGen_test import ( "math/rand" - "password-generator/passGen" "strings" "testing" + + "password-generator/passGen" ) func TestGeneratePasswordWithGivenCharacterNumber(t *testing.T) {