<commit_before>package system

import (
	"context"
	"testing"

	"github.com/google/uuid"
	"gotest.tools/assert"
)

func TestUUIDGeneration(t *testing.T) {
	defer setupTest(t)()

	c := testEnv.APIClient()
	info, err := c.Info(context.Background())
	assert.NilError(t, err)

	_, err = uuid.Parse(info.ID)
	assert.NilError(t, err)
}<commit_msg>Skip TestUUIDGeneration on API < v1.40<commit_after>package system

import (
	"context"
	"testing"

	"github.com/docker/docker/api/types/versions"
	"github.com/google/uuid"
	"gotest.tools/assert"
	"gotest.tools/skip"
)

func TestUUIDGeneration(t *testing.T) {
	skip.If(t, versions.LessThan(testEnv.DaemonAPIVersion(), "1.40"), "ID format changed")
	defer setupTest(t)()

	c := testEnv.APIClient()
	info, err := c.Info(context.Background())
	assert.NilError(t, err)

	_, err = uuid.Parse(info.ID)
	assert.NilError(t, err, info.ID)
}
{'fraction_non_alphanumeric': 0.16628440366972477, 'fraction_numerical': 0.006880733944954129, 'mean_word_length': 4.898648648648648, 'pattern_counts': {'":': 0, '<': 4, '<?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': '2112491', 'n_tokens_mistral': 345, 'n_tokens_neox': 343, 'n_words': 59}