summaryrefslogtreecommitdiffstats
path: root/modules/base/tool_test.go
Commit message (Collapse)AuthorAgeFilesLines
* Display ui time with customize time location (#7792)Lunny Xiao2019-08-151-149/+0
| | | | | | | | | | | | | | | | | | * display ui time with customize time location * fix lint * rename UILocation to DefaultUILocation * move time related functions to modules/timeutil * fix tests * fix tests * fix build * fix swagger
* Convert files to utf-8 for indexing (#7814)guillep2k2019-08-151-36/+0
| | | | | | | | | | | | | | * Convert files to utf-8 for indexing * Move utf8 functions to modules/base * Bump repoIndexerLatestVersion to 3 * Add tests for base/encoding.go * Changes to pass gosimple * Move UTF8 funcs into new modules/charset package
* Add golangci (#6418)kolaente2019-06-121-8/+7
|
* refactor: append, build variable and type switch (#4940)Bo-Yi Wu2019-05-281-8/+8
| | | | | | * refactor: append, build variable and type switch * fix: remove redundant space.
* Hash App token (#6724)techknowlogick2019-05-041-0/+7
|
* Use type switch (#5122)Oleg Kovalov2018-10-191-8/+8
|
* Implements generator cli for secrets (#3531)Codruț Constantin Gușoi2018-02-181-6/+0
| | | Signed-off-by: Codruț Constantin Gușoi <codrut.gusoi@gmail.com>
* Fix avatar URLs (#3069)Ethan Koenig2017-12-031-4/+30
| | | | | | * Fix avatar URLs * import order
* Use identicon image for default gravatar. (#2767)harry2017-10-231-1/+1
| | | | | | * Use identicon image for default gravatar. * Fixed tests.
* Make time diff translatable (#2057)Lauris BH2017-06-281-9/+7
|
* xxx_active_code_live setting in printed in hours and minutes instead … (#1814)Jonas Östanbäck2017-05-291-0/+14
| | | | | | * xxx_active_code_live setting in printed in hours and minutes instead of just hours * Update app.ini description of xxx_code_lives settings
* Remove test that touch networkAndrey Nering2017-02-251-14/+2
|
* Fix race condition in unit test (#456)Ethan Koenig2016-12-231-2/+7
|
* Bindata is optional and over-writable on restart (#354)Thomas Boerger2016-12-221-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * Moved conf assets into options folder * Dropped old bindata * Started to integrate options bindata and accessors * Do not enforce a builtin app.ini * Replaced bindata calls with options * Dropped bindata task from makefile, it's the generate task now * Always embedd app.ini to provide sane config defaults * Use sane defaults for the configuration * Defined default value for SSH_KEYGEN_PATH * Dropped "NEVER EVER MODIFY THIS FILE" header from app.ini * Fixed new paths in latest test additions * Drop bindata with make clean task * Set more proper default values
* Bug fixes and tests for modules/base (#442)Ethan Koenig2016-12-221-16/+217
| | | Also address other TODOs
* Fix random string generator (#384)Denis Denisov2016-12-201-1/+3
| | | | | | | | | | | * Remove unused custom-alphabet feature of random string generator Fix random string generator Random string generator should return error if it fails to read random data via crypto/rand * Fixes variable (un)initialization mixed assign Update test GetRandomString
* Update import paths from github.com/go-gitea to code.gitea.io (#135)Sandro Santilli2016-11-101-1/+1
| | | | | | | - Update import paths from github.com/go-gitea to code.gitea.io - Fix import path for travis See https://docs.travis-ci.com/user/languages/go#Go-Import-Path
* Add test for IsTextFile()Matthias Loibl2016-11-071-3/+7
|
* Add test for IsLetter()Matthias Loibl2016-11-071-1/+15
|
* Add test for Int64sToMap()Matthias Loibl2016-11-071-1/+8
|
* Add tests for StringsToInt64s() & Int64sToStrings()Matthias Loibl2016-11-071-8/+43
|
* Add tests for TruncateString()Matthias Loibl2016-11-071-1/+11
|
* Add tests for EllipsisString() and fix bug if param length < 3Matthias Loibl2016-11-071-4/+12
|
* Test AvatarLink and refactor with tests passingMatthias Loibl2016-11-071-1/+23
|
* Use testify/assert for all tests in tool_test.goMatthias Loibl2016-11-071-31/+12
|
* Add unit test for base.FileSize()Matthias Loibl2016-11-071-2/+23
|
* Start to add tests for modules/base/toolMatthias Loibl2016-11-071-0/+83