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)
| 55 | // |
| 56 | // Note: This test is only executed if the initial connection to S3 works. |
| 57 | func 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 | // |
nothing calls this directly
no test coverage detected