(logs []T)
| 3887 | } |
| 3888 | |
| 3889 | func 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 | |
| 3904 | func TestBatchUpsertConnectionLogs(t *testing.T) { |
| 3905 | t.Parallel() |
no outgoing calls
no test coverage detected