MCPcopy Create free account

hub / github.com/aeolyus/gull / functions

Functions28 in github.com/aeolyus/gull

↓ 6 callersFunctionappendText
(str, color = "")
public/index.js:95
↓ 5 callersFunctionsetup
Initialize an in-memory database for testing
handlers/handlers_test.go:15
↓ 5 callersFunctionteardown
Discard the in-memory database
handlers/handlers_test.go:22
↓ 4 callersMethodInitialize
Initialize initializes the app, connects to database, and does auto migration
handlers/handlers.go:29
↓ 3 callersFunctionIsValidAlias
IsValidAlias tests whether a string is in the alphanumeric charset
utils/utils.go:61
↓ 2 callersFunctionIsValidURL
IsValidURL checks if string is a valid url
utils/utils.go:55
↓ 2 callersFunctionRandString
RandString generates a random alphanumeric string of given length
utils/utils.go:67
↓ 1 callersFunctionclear
()
public/index.js:105
↓ 1 callersFunctioncopyToClip
(str)
public/index.js:110
↓ 1 callersFunctionisValidAlias
(str)
public/index.js:90
↓ 1 callersFunctionisValidURL
(str)
public/index.js:85
↓ 1 callersFunctionrandStringWithCharset
(length int, charset string)
utils/utils.go:71
↓ 1 callersFunctionsendReq
()
public/index.js:65
MethodCreateShortURL
CreateShortURL will take a url and shorten it with an (custom) alias
handlers/handlers.go:62
MethodGetURL
GetURL takes a shortlink and redirects the user to the relevant link if it exists
handlers/handlers.go:50
MethodListAll
ListAll returns a JSON response of all the url entries in the database
handlers/handlers.go:41
FunctionTestCorruptCreate
(t *testing.T)
handlers/handlers_test.go:117
FunctionTestCreate
(t *testing.T)
handlers/handlers_test.go:26
FunctionTestFailDBBadDriver
(t *testing.T)
handlers/handlers_test.go:231
FunctionTestFailDBBadURI
(t *testing.T)
handlers/handlers_test.go:241
FunctionTestGetURL
(t *testing.T)
handlers/handlers_test.go:139
FunctionTestInvalidCreate
(t *testing.T)
handlers/handlers_test.go:73
FunctionTestIsValidAlias
(t *testing.T)
utils/utils_test.go:7
FunctionTestIsValidURL
(t *testing.T)
utils/utils_test.go:38
FunctionTestListAll
(t *testing.T)
handlers/handlers_test.go:187
FunctionTestRandString
For the code coverage why not
utils/utils_test.go:122
Functionmain
()
server.go:23
Functionshorten
(event)
public/index.js:51