<commit_before>package validation

import (
	"testing"

	"github.com/appPlant/alpinepass/src/data"
	"github.com/stretchr/testify/assert"
)

func TestValidateCommonFieldsFail(t *testing.T) {
	config := data.Config{
		Location: "Earth",
	}

	assert.NotEqual(t, "", verifyCommonFields(config),
		"The validation should fail.")
}

func TestValidateCommonFieldsSuccess(t *testing.T) {
	config := data.Config{
		ID:       "test.mandatory.success",
		Env:      "int",
		Location: "Earth",
	}

	assert.Equal(t, "", verifyCommonFields(config),
		"The validation should not fail.")
}
<commit_msg>Fix test<commit_after>package validation

import (
	"testing"

	"github.com/appPlant/alpinepass/src/data"
	"github.com/stretchr/testify/assert"
)

func TestValidateCommonFieldsFail(t *testing.T) {
	config := data.Config{
		Location: "Earth",
	}

	assert.NotEqual(t, "", verifyCommonFields(config),
		"The validation should fail.")
}

func TestValidateCommonFieldsSuccess(t *testing.T) {
	config := data.Config{
		ID:   "test.mandatory.success",
		Env:  "int",
		Type: "db",
		User: "someUser",
		URL:  "url.com",
	}

	assert.Equal(t, "", verifyCommonFields(config),
		"The validation should not fail.")
}

{'fraction_non_alphanumeric': 0.15197313182199831, 'fraction_numerical': 0.0, 'mean_word_length': 4.518518518518518, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5916833', 'n_tokens_mistral': 439, 'n_tokens_neox': 419, 'n_words': 79}