MCPcopy Index your code
hub / github.com/coder/coder / Empty

Method Empty

coderd/database/migrations/migrate_test.go:208–219  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

206}
207
208func (s *tableStats) Empty() []string {
209 s.mu.Lock()
210 defer s.mu.Unlock()
211
212 var m []string
213 for table, n := range s.s {
214 if n == 0 {
215 m = append(m, table)
216 }
217 }
218 return m
219}
220
221func TestMigrateUpWithFixtures(t *testing.T) {
222 t.Parallel()

Calls 2

LockMethod · 0.45
UnlockMethod · 0.45

Tested by

no test coverage detected