MCPcopy Create free account
hub / github.com/crewjam/saml / TestScopingElementMinimal

Function TestScopingElementMinimal

schema_test.go:451–458  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

449}
450
451func TestScopingElementMinimal(t *testing.T) {
452 s := Scoping{IDPList: &IDPList{IDPEntries: []IDPEntry{{ProviderID: "https://idp.example.com"}}}}
453 doc := etree.NewDocument()
454 doc.SetRoot(s.Element())
455 x, err := doc.WriteToBytes()
456 assert.Check(t, err)
457 assert.Check(t, is.Equal(`<samlp:Scoping><samlp:IDPList><samlp:IDPEntry ProviderID="https://idp.example.com"/></samlp:IDPList></samlp:Scoping>`, string(x)))
458}

Callers

nothing calls this directly

Calls 1

ElementMethod · 0.95

Tested by

no test coverage detected