sourcegraph/dev/codehost_testing/util.go
William Bezuidenhout f533eadf59
e2e test: define base tst framework for easier scenario setup (#56774)
* e2e tst: add actions to create github org (#56775)

* add basic actions to create org

* e2e tst: add actions to create github users (#56776)

* add basic actions to create and get users

* fix adminUser

* add unique id to user email

* e2e tst: add actions to create github teams (#56777)

* add basic actions to manage teams

* e2e tst: add actions to create repos (#56778)

---------

Co-authored-by: Petri-Johan Last <petri.last@sourcegraph.com>
Co-authored-by: Jean-Hadrien Chabran <jean-hadrien.chabran@sourcegraph.com>
2023-10-10 16:30:00 +02:00

10 lines
195 B
Go

package codehost_testing
func reverse[T any](src []T) []T {
reversed := make([]T, 0, len(src))
for i := len(src) - 1; i >= 0; i-- {
reversed = append(reversed, src[i])
}
return reversed
}