Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertToJSON ¶
func ConvertToJSON(v interface{}) string
ConvertToJSON converts any value to JSON for debugging
Types ¶
type HTTPTestRunner ¶
type HTTPTestRunner struct {
BaseURL string
Client *httpclient.Client
Logger *logger.Logger
}
HTTPTestRunner runs HTTP JSON-RPC 2.0 tests
func NewHTTPTestRunner ¶
func NewHTTPTestRunner(baseURL string, timeout time.Duration, logger *logger.Logger) *HTTPTestRunner
NewHTTPTestRunner creates a new HTTP test runner
func (*HTTPTestRunner) RunTestCase ¶
RunTestCase runs a single test case from YAML spec with setup/teardown support
func (*HTTPTestRunner) RunTestCaseWithHarness ¶
func (r *HTTPTestRunner) RunTestCaseWithHarness( harness *test_case_harness.TestCaseHarness, testCase yamlspec.TestCase, ) error
RunTestCaseWithHarness runs a test case using TestCaseHarness Returns error if test case fails
Click to show internal directories.
Click to hide internal directories.