<commit_before>// Copyright 2016 Canonical Ltd.
// Licensed under the AGPLv3, see LICENCE file for details.

package migration_test

import (
	"github.com/juju/errors"
	jc "github.com/juju/testing/checkers"
	"github.com/juju/version"
	gc "gopkg.in/check.v1"

	"github.com/juju/juju/migration"
	"github.com/juju/juju/testing"
	"github.com/juju/juju/tools"
)

// Ensure PrecheckShim matches the required interface.
var _ migration.PrecheckBackend = new(migration.PrecheckShim)

type SourcePrecheckSuite struct {
	testing.BaseSuite
}

var _ = gc.Suite(&SourcePrecheckSuite{})

func (*SourcePrecheckSuite) TestCleanups(c *gc.C) {
	backend := &fakeBackend{}
	err := migration.SourcePrecheck(backend)
	c.Assert(err, jc.ErrorIsNil)<commit_msg>migration: Removed broken type assert<commit_after>// Copyright 2016 Canonical Ltd.
// Licensed under the AGPLv3, see LICENCE file for details.

package migration_test

import (
	"github.com/juju/errors"
	jc "github.com/juju/testing/checkers"
	"github.com/juju/version"
	gc "gopkg.in/check.v1"

	"github.com/juju/juju/migration"
	"github.com/juju/juju/testing"
	"github.com/juju/juju/tools"
)

type SourcePrecheckSuite struct {
	testing.BaseSuite
}

var _ = gc.Suite(&SourcePrecheckSuite{})

func (*SourcePrecheckSuite) TestCleanups(c *gc.C) {
	backend := &fakeBackend{}
	err := migration.SourcePrecheck(backend)
	c.Assert(err, jc.ErrorIsNil)
{'fraction_non_alphanumeric': 0.12844702467343977, 'fraction_numerical': 0.008708272859216255, 'mean_word_length': 4.918454935622318, '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': '5494405', 'n_tokens_mistral': 536, 'n_tokens_neox': 508, 'n_words': 96}