Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var EMPTY struct{}
Functions ¶
This section is empty.
Types ¶
type TestHelper ¶
type TestHelper struct {
// contains filtered or unexported fields
}
libssl runner has thousands tests. These tests can be converted to test SSL transfer(encode and decode SSL) by enabling |bssl_shim| flag |-ssl-transfer|. However, not all tests are eligible for the conversion due to the support scope of SSL transfer. Besides, libssl runner needs to know all tests(including the converted) so it can process these tests concurrently. Otherwise, it has to execute the tests in two sequential sync.WaitGroup.
TestHelper is created to 1. collect the name of the tests that can be converted to test SSL transfer.
func NewTestHelper ¶
func NewTestHelper(test_file_path string, num_of_tests int) *TestHelper
func (*TestHelper) AddNewCase ¶
func (helper *TestHelper) AddNewCase(test_case_name string)
AddNewCase collects new test case that should be converted to test SSL transfer.
func (*TestHelper) CanBeTransfer ¶
func (helper *TestHelper) CanBeTransfer(test_case_name string) bool
CanBeTransfer tells if |test_case_name| can be converted to test SSL transfer.
func (*TestHelper) RefreshTestFileContent ¶
func (helper *TestHelper) RefreshTestFileContent()
Refresh the content of |abs_test_file| when 1. the new test case should be converted to test SSL transfer. 2. some test cases are deleted or renamed.