MCPcopy Create free account
hub / github.com/IceFireDB/IceFireDB / TestTypes

Function TestTypes

driver/oss/s3_test.go:57–73  ·  view source on GitHub ↗

TestTypes tests if setting and getting values works with all Go types. Note: This test is only executed if the initial connection to S3 works.

(t *testing.T)

Source from the content-addressed store, hash-verified

55//
56// Note: This test is only executed if the initial connection to S3 works.
57func TestTypes(t *testing.T) {
58 if !checkConnection() {
59 t.Skip("No connection to S3 could be established. Probably not running in a proper test environment.")
60 }
61
62 // Test with JSON
63 t.Run("JSON", func(t *testing.T) {
64 client := createClient(t, encoding.JSON)
65 test.TestTypes(client, t)
66 })
67
68 // Test with gob
69 t.Run("gob", func(t *testing.T) {
70 client := createClient(t, encoding.Gob)
71 test.TestTypes(client, t)
72 })
73}
74
75// TestClientConcurrent launches a bunch of goroutines that concurrently work with the S3 client.
76//

Callers

nothing calls this directly

Calls 3

checkConnectionFunction · 0.85
createClientFunction · 0.85
RunMethod · 0.45

Tested by

no test coverage detected