MCPcopy Create free account
hub / github.com/google/go-github / TestNewAzureBlobStreamConfig

Function TestNewAzureBlobStreamConfig

github/enterprise_audit_log_stream_test.go:249–267  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

247}
248
249func TestNewAzureBlobStreamConfig(t *testing.T) {
250 t.Parallel()
251 cfg := &AzureBlobConfig{
252 KeyID: "v1",
253 EncryptedSASURL: "ENCRYPTED",
254 Container: "my-container",
255 }
256
257 got := NewAzureBlobStreamConfig(true, cfg)
258
259 want := &AuditLogStreamConfig{
260 Enabled: true,
261 StreamType: "Azure Blob Storage",
262 VendorSpecific: cfg,
263 }
264 if !cmp.Equal(got, want) {
265 t.Errorf("NewAzureBlobStreamConfig = %+v, want %+v", got, want)
266 }
267}
268
269func TestNewAzureHubStreamConfig(t *testing.T) {
270 t.Parallel()

Callers

nothing calls this directly

Calls 2

NewAzureBlobStreamConfigFunction · 0.85
EqualMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…