func TestCleanFileExtract(t *testing.T) {
	t.Parallel()
	SetLoggingLevel(logging.Level(*loggingLevel))

	var cleanImg StegImage
	// Read in clean image
	err := cleanImg.LoadImageFromFile(cleanImageFile)
	if err != nil {
		t.Error(err)
	}

	// Attempt to get secret from clean image - expect to fail
	_, err = cleanImg.DoStegExtract()

	// Check for expected error
	if err.Error() != "error finding embedded secret string" {
		t.Error("Correct Error not thrown!")
	}
}
// TestCleanFileExtract tests that DoStegExtract returns err on being unable to extract a secret
TestCleanFileExtract tests that DoStegExtract returns err on being unable to extract a secret
// TestCleanFileExtract tests that DoStegExtract returns err on being unable to extract a secret
func TestCleanFileExtract(t *testing.T) {
	t.Parallel()
	SetLoggingLevel(logging.Level(*loggingLevel))
	var cleanImg StegImage
	err := cleanImg.LoadImageFromFile(cleanImageFile)
	if err != nil {
		t.Error(err)
	}
	_, err = cleanImg.DoStegExtract()
	if err.Error() != "error finding embedded secret string" {
		t.Error("Correct Error not thrown!")
	}
}
func TestCleanFileExtract ( t * testing . T ) { t . Parallel ( ) SetLoggingLevel ( logging . Level ( * loggingLevel ) ) var cleanImg StegImage err := cleanImg . LoadImageFromFile ( cleanImageFile ) if err != nil { t . Error ( err ) } _ , err = cleanImg . DoStegExtract ( ) if err . Error ( ) != " " { t . Error ( " " ) } }
TestCleanFileExtract tests that DoStegExtract returns err on being unable to extract a secret
TestCleanFileExtract tests that DoStegExtract returns err on being unable to extract a secret
// Read in clean image // Attempt to get secret from clean image - expect to fail // Check for expected error