MCPcopy Index your code
hub / github.com/riverqueue/river / seqOneTo

Function seqOneTo

rivermigrate/river_migrate_test.go:1029–1037  ·  view source on GitHub ↗

Produces a sequence down to one. UpperLimit is included.

(upperLimit int)

Source from the content-addressed store, hash-verified

1027
1028// Produces a sequence down to one. UpperLimit is included.
1029func seqOneTo(upperLimit int) []int {
1030 seq := make([]int, 0, upperLimit)
1031
1032 for i := 1; i <= upperLimit; i++ {
1033 seq = append(seq, i)
1034 }
1035
1036 return seq
1037}
1038
1039func seqDownTo(upperLimit, lowerLimit int) []int {
1040 seq := make([]int, 0, upperLimit-lowerLimit+1)

Callers 2

TestMigratorFunction · 0.85
TestMigrationsFromFSFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…