<commit_before>package fakes

import (
	boshdevutil "github.com/cloudfoundry/bosh-agent/platform/deviceutil"
	fakedevutil "github.com/cloudfoundry/bosh-agent/platform/deviceutil/fakes"
	boshdisk "github.com/cloudfoundry/bosh-agent/platform/disk"
)

type FakeDiskManager struct {
	FakePartitioner           *FakePartitioner
	FakeFormatter             *FakeFormatter
	FakeMounter               *FakeMounter
	FakeMountsSearcher        *FakeMountsSearcher
	FakeRootDevicePartitioner *FakePartitioner
	FakeDiskUtil              *fakedevutil.FakeDeviceUtil
	DiskUtilDiskPath          string
	PartedPartitionerCalled   bool
	PartitionerCalled         bool
}

func NewFakeDiskManager() *FakeDiskManager {
	return &FakeDiskManager{
		FakePartitioner:           NewFakePartitioner(),
		FakeFormatter:             &FakeFormatter{},
		FakeMounter:               &FakeMounter{},
		FakeMountsSearcher:        &FakeMountsSearcher{},
		FakeRootDevicePartitioner: NewFakePartitioner(),
		FakeDiskUtil:              fakedevutil.NewFakeDeviceUtil(),
		PartedPartitionerCalled:   false,
		PartitionerCalled:         false,
	}
}

func (m *FakeDiskManager) GetPartitioner() boshdisk.Partitioner {
	m.PartitionerCalled = true
	return m.FakePartitioner
}

func (m *FakeDiskManager) GetPartedPartitioner() boshdisk.Partitioner {
	m.PartedPartitionerCalled = true
	return m.FakePartitioner<commit_msg>PartedPartitioner and Partitioner usage in FakeDiskManager<commit_after>package fakes

import (
	boshdevutil "github.com/cloudfoundry/bosh-agent/platform/deviceutil"
	fakedevutil "github.com/cloudfoundry/bosh-agent/platform/deviceutil/fakes"
	boshdisk "github.com/cloudfoundry/bosh-agent/platform/disk"
)

type FakeDiskManager struct {
	FakePartitioner           *FakePartitioner
	FakePartedPartitioner     *FakePartitioner
	FakeFormatter             *FakeFormatter
	FakeMounter               *FakeMounter
	FakeMountsSearcher        *FakeMountsSearcher
	FakeRootDevicePartitioner *FakePartitioner
	FakeDiskUtil              *fakedevutil.FakeDeviceUtil
	DiskUtilDiskPath          string
	PartedPartitionerCalled   bool
	PartitionerCalled         bool
}

func NewFakeDiskManager() *FakeDiskManager {
	return &FakeDiskManager{
		FakePartitioner:           NewFakePartitioner(),
		FakePartedPartitioner:     NewFakePartitioner(),
		FakeFormatter:             &FakeFormatter{},
		FakeMounter:               &FakeMounter{},
		FakeMountsSearcher:        &FakeMountsSearcher{},
		FakeRootDevicePartitioner: NewFakePartitioner(),
		FakeDiskUtil:              fakedevutil.NewFakeDeviceUtil(),
		PartedPartitionerCalled:   false,
		PartitionerCalled:         false,
	}
}

func (m *FakeDiskManager) GetPartitioner() boshdisk.Partitioner {
	m.PartitionerCalled = true
	return m.FakePartitioner
}

func (m *FakeDiskManager) GetPartedPartitioner() boshdisk.Partitioner {
	m.PartedPartitionerCalled = true
	return m.FakePartedPartitioner
{'fraction_non_alphanumeric': 0.07078729281767956, 'fraction_numerical': 0.0, 'mean_word_length': 3.86890756302521, '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': '3211853', 'n_tokens_mistral': 867, 'n_tokens_neox': 869, 'n_words': 146}