MCPcopy Create free account
hub / github.com/cloudbase/garm / equalInstancesByName

Method equalInstancesByName

database/sql/organizations_test.go:64–73  ·  view source on GitHub ↗
(expected, actual []params.Instance)

Source from the content-addressed store, hash-verified

62}
63
64func (s *OrgTestSuite) equalInstancesByName(expected, actual []params.Instance) {
65 s.Require().Equal(len(expected), len(actual))
66
67 sort.Slice(expected, func(i, j int) bool { return expected[i].Name > expected[j].Name })
68 sort.Slice(actual, func(i, j int) bool { return actual[i].Name > actual[j].Name })
69
70 for i := 0; i < len(expected); i++ {
71 s.Require().Equal(expected[i].Name, actual[i].Name)
72 }
73}
74
75func (s *OrgTestSuite) assertSQLMockExpectations() {
76 err := s.Fixtures.SQLMock.ExpectationsWereMet()

Callers 1

TestListOrgInstancesMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected