github.com/MetalBlockchain/metalgo@v1.11.9/snow/engine/avalanche/vertex/test_manager.go (about)

     1  // Copyright (C) 2019-2024, Ava Labs, Inc. All rights reserved.
     2  // See the file LICENSE for licensing terms.
     3  
     4  package vertex
     5  
     6  import "testing"
     7  
     8  var _ Manager = (*TestManager)(nil)
     9  
    10  type TestManager struct {
    11  	TestBuilder
    12  	TestParser
    13  	TestStorage
    14  }
    15  
    16  func NewTestManager(t *testing.T) *TestManager {
    17  	return &TestManager{
    18  		TestBuilder: TestBuilder{T: t},
    19  		TestParser:  TestParser{T: t},
    20  		TestStorage: TestStorage{T: t},
    21  	}
    22  }
    23  
    24  func (m *TestManager) Default(cant bool) {
    25  	m.TestBuilder.Default(cant)
    26  	m.TestParser.Default(cant)
    27  	m.TestStorage.Default(cant)
    28  }