From 97c305307cf022fc069b19ba8de6db62abcfac8a Mon Sep 17 00:00:00 2001 From: Afthab Date: Tue, 2 May 2023 11:41:12 +0530 Subject: [PATCH 1/4] changed --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 1e9ec75..02f2c3f 100644 --- a/main.go +++ b/main.go @@ -6,4 +6,4 @@ import ( func main() { testingg.Connect() -} + From 09a893174e1bfb4cf5ce4c9f66f5bea48c7da002 Mon Sep 17 00:00:00 2001 From: Afthab Date: Tue, 2 May 2023 11:45:25 +0530 Subject: [PATCH 2/4] fixed --- main.go | 2 +- testingg/pgm_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index 02f2c3f..1e9ec75 100644 --- a/main.go +++ b/main.go @@ -6,4 +6,4 @@ import ( func main() { testingg.Connect() - +} diff --git a/testingg/pgm_test.go b/testingg/pgm_test.go index 861b712..f904db8 100644 --- a/testingg/pgm_test.go +++ b/testingg/pgm_test.go @@ -17,7 +17,7 @@ func TestCreateTask(t *testing.T) { // Define the expected insert query and result - expectedInsert := "INSERT INTO todo VALUES\\('test', '50'\\);?" + expectedInsert := "INSERT INTO todo VALUES\\('test'\\);?" mock.ExpectExec(expectedInsert).WillReturnResult(sqlmock.NewResult(1, 1)) From e56f796b3f906b2cdd703ec40815cddde2b6f557 Mon Sep 17 00:00:00 2001 From: Afthab Date: Tue, 2 May 2023 11:49:22 +0530 Subject: [PATCH 3/4] again changed --- testingg/pgm_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testingg/pgm_test.go b/testingg/pgm_test.go index f904db8..c207ccc 100644 --- a/testingg/pgm_test.go +++ b/testingg/pgm_test.go @@ -17,7 +17,7 @@ func TestCreateTask(t *testing.T) { // Define the expected insert query and result - expectedInsert := "INSERT INTO todo VALUES\\('test'\\);?" + expectedInsert := "INSERT INTO todo VALUES\\('test','50'\\);?" mock.ExpectExec(expectedInsert).WillReturnResult(sqlmock.NewResult(1, 1)) From bc98fce3f629c0dfd9d9edf6798550e43aa80b7b Mon Sep 17 00:00:00 2001 From: Afthab Date: Tue, 2 May 2023 11:50:54 +0530 Subject: [PATCH 4/4] again --- testingg/pgm_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testingg/pgm_test.go b/testingg/pgm_test.go index c207ccc..861b712 100644 --- a/testingg/pgm_test.go +++ b/testingg/pgm_test.go @@ -17,7 +17,7 @@ func TestCreateTask(t *testing.T) { // Define the expected insert query and result - expectedInsert := "INSERT INTO todo VALUES\\('test','50'\\);?" + expectedInsert := "INSERT INTO todo VALUES\\('test', '50'\\);?" mock.ExpectExec(expectedInsert).WillReturnResult(sqlmock.NewResult(1, 1))