MCPcopy
hub / github.com/keploy/keploy / IsHTTPStreamingTestCase

Function IsHTTPStreamingTestCase

pkg/util.go:936–941  ·  view source on GitHub ↗

IsHTTPStreamingTestCase returns true if the testcase response is identified as a stream format supported by replay-time incremental validators.

(tc *models.TestCase)

Source from the content-addressed store, hash-verified

934// IsHTTPStreamingTestCase returns true if the testcase response is identified as a stream format
935// supported by replay-time incremental validators.
936func IsHTTPStreamingTestCase(tc *models.TestCase) bool {
937 if tc == nil {
938 return false
939 }
940 return DetectHTTPStreamConfig(tc, nil).Mode != HTTPStreamModeNone
941}
942
943// CompareHTTPStream compares an expected HTTP response with a streaming response.
944// It returns whether they match, the captured body content, mismatch details (if any), and any error.

Callers 2

RunTestSetMethod · 0.92
SimulateRequestMethod · 0.92

Calls 1

DetectHTTPStreamConfigFunction · 0.85

Tested by

no test coverage detected