<commit_before>package lex_test

import (
	"testing"

	"github.com/lxc/lxd/lxd/db/generate/lex"
	"github.com/stretchr/testify/assert"
	"github.com/stretchr/testify/require"
)

func TestParse(t *testing.T) {
	pkg, err := lex.Parse("./lxd/db/generate/lex")
	require.NoError(t, err)

	obj := pkg.Scope.Lookup("Parse")
	assert.NotNil(t, obj)
}<commit_msg>lxd/db/generate/lxd/parse/test: Updates TestParse<commit_after>package lex_test

import (
	"path/filepath"
	"runtime"
	"testing"

	"github.com/lxc/lxd/lxd/db/generate/lex"
	"github.com/stretchr/testify/assert"
	"github.com/stretchr/testify/require"
)

func TestParse(t *testing.T) {
	_, filename, _, _ := runtime.Caller(0)
	pkg, err := lex.Parse(filepath.Dir(filename))
	require.NoError(t, err)

	obj := pkg.Scope.Lookup("Parse")
	assert.NotNil(t, obj)
}
{'fraction_non_alphanumeric': 0.17515527950310558, 'fraction_numerical': 0.0012422360248447205, 'mean_word_length': 4.716312056737588, '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': '5304189', 'n_tokens_mistral': 341, 'n_tokens_neox': 333, 'n_words': 44}