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

Function connectionOnlyIDs

coderd/database/querier_test.go:3889–3902  ·  view source on GitHub ↗
(logs []T)

Source from the content-addressed store, hash-verified

3887}
3888
3889func connectionOnlyIDs[T database.ConnectionLog | database.GetConnectionLogsOffsetRow](logs []T) []uuid.UUID {
3890 ids := make([]uuid.UUID, 0, len(logs))
3891 for _, log := range logs {
3892 switch log := any(log).(type) {
3893 case database.ConnectionLog:
3894 ids = append(ids, log.ID)
3895 case database.GetConnectionLogsOffsetRow:
3896 ids = append(ids, log.ConnectionLog.ID)
3897 default:
3898 panic("unreachable")
3899 }
3900 }
3901 return ids
3902}
3903
3904func TestBatchUpsertConnectionLogs(t *testing.T) {
3905 t.Parallel()

Calls

no outgoing calls

Tested by

no test coverage detected