getCursor encodes a string input into a URL-safe base64 cursor, fatally logging any encoding errors.
(input string)
| 59 | // getCursor encodes a string input into a URL-safe base64 cursor, |
| 60 | // fatally logging any encoding errors. |
| 61 | func getCursor(input string) string { |
| 62 | cursor, err := encodeCursor(input) |
| 63 | if err != nil { |
| 64 | log.Fatalf("encodeCursor(%s) error = %v", input, err) |
| 65 | } |
| 66 | return cursor |
| 67 | } |
| 68 | |
| 69 | func TestServerPaginateBasic(t *testing.T) { |
| 70 | testCases := []struct { |
no test coverage detected
searching dependent graphs…