From a348b5219d46dae4bdf9e54e33146f23deed4728 Mon Sep 17 00:00:00 2001 From: Rafael Passos Date: Sat, 27 Apr 2019 02:26:14 -0300 Subject: [PATCH] removed example tests This tests affected the overall test coverage of the project. --- examples/stego_test.go | 31 ------------------------------- 1 file changed, 31 deletions(-) delete mode 100644 examples/stego_test.go diff --git a/examples/stego_test.go b/examples/stego_test.go deleted file mode 100644 index 0d0133f..0000000 --- a/examples/stego_test.go +++ /dev/null @@ -1,31 +0,0 @@ -package main - -import ( - "image" - "log" - "testing" -) - -var rawInputFile = "./stegosaurus.png" -var encodedInputFile = "./encoded_stegosaurus.png" - -func TestOpenImageFromPath(t *testing.T) { - img, err := OpenImageFromPath(rawInputFile) - if err != nil { - log.Printf("Error opening or Decoding file %s: %v", rawInputFile, err) - t.FailNow() - } - if (img.Bounds().Bounds() != image.Rectangle{image.Point{0, 0}, image.Point{1195, 642}}) { - log.Printf("Image has wrong size") - t.FailNow() - - } -} - -func TestEmptyPathHelperFunction(t *testing.T) { - _, err := OpenImageFromPath(" ") - if err == nil { - log.Print("Empty path given, err could not be nil.") - t.FailNow() - } -}