MCPcopy
hub / github.com/SpecterOps/BloodHound / getKindByName

Function getKindByName

cmd/api/src/database/graphschema_integration_test.go:61–67  ·  view source on GitHub ↗
(t *testing.T, testSuite IntegrationTestSuite, name string)

Source from the content-addressed store, hash-verified

59}
60
61func getKindByName(t *testing.T, testSuite IntegrationTestSuite, name string) model.Kind {
62 t.Helper()
63 // Create Kind by name from DAWGS Kind Table
64 kind, err := testSuite.BHDatabase.GetKindsByNames(testSuite.Context, name)
65 require.NoError(t, err, "unexpected error occurred when getting kind by name")
66 return kind[0]
67}
68
69func createTestEnvironment(t *testing.T, testSuite IntegrationTestSuite, extensionID int32, envKindID int32, sourceKindID int32) model.SchemaEnvironment {
70 t.Helper()

Calls 1

GetKindsByNamesMethod · 0.65

Tested by

no test coverage detected