kolaente
cdba91b438
Add golangci ( #6418 )
6 years ago
Bo-Yi Wu
5c8fb06e75
refactor: append, build variable and type switch ( #4940 )
* refactor: append, build variable and type switch
* fix: remove redundant space.
6 years ago
techknowlogick
1115700cd0
Hash App token ( #6724 )
6 years ago
Oleg Kovalov
48120b59c0
Use type switch ( #5122 )
7 years ago
Codruț Constantin Gușoi
467c9eed17
Implements generator cli for secrets ( #3531 )
Signed-off-by: Codruț Constantin Gușoi <codrut.gusoi@gmail.com>
8 years ago
Ethan Koenig
6a17ccbd81
Fix avatar URLs ( #3069 )
* Fix avatar URLs
* import order
8 years ago
harry
85a58ee26b
Use identicon image for default gravatar. ( #2767 )
* Use identicon image for default gravatar.
* Fixed tests.
8 years ago
Lauris BH
96b13d94ec
Make time diff translatable ( #2057 )
8 years ago
Jonas Östanbäck
dd3884fdea
xxx_active_code_live setting in printed in hours and minutes instead … ( #1814 )
* xxx_active_code_live setting in printed in hours and minutes instead of just hours
* Update app.ini description of xxx_code_lives settings
8 years ago
Andrey Nering
17a8f0cab0
Remove test that touch network
9 years ago
Ethan Koenig
fcf7d7fb37
Fix race condition in unit test ( #456 )
9 years ago
Thomas Boerger
9fde430c66
Bindata is optional and over-writable on restart ( #354 )
* 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
9 years ago
Ethan Koenig
e9093cb8e8
Bug fixes and tests for modules/base ( #442 )
Also address other TODOs
9 years ago
Denis Denisov
820c295d94
Fix random string generator ( #384 )
* 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
9 years ago
Sandro Santilli
cb1b3cc148
Update import paths from github.com/go-gitea to code.gitea.io ( #135 )
- 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
9 years ago
Matthias Loibl
fe69658651
Add test for IsTextFile()
9 years ago
Matthias Loibl
b3d3172863
Add test for IsLetter()
9 years ago
Matthias Loibl
573da4204c
Add test for Int64sToMap()
9 years ago
Matthias Loibl
92baf795af
Add tests for StringsToInt64s() & Int64sToStrings()
9 years ago
Matthias Loibl
38d6f53a3d
Add tests for TruncateString()
9 years ago
Matthias Loibl
47941f01a1
Add tests for EllipsisString() and fix bug if param length < 3
9 years ago
Matthias Loibl
8834f9dd90
Test AvatarLink and refactor with tests passing
9 years ago
Matthias Loibl
5bbea06803
Use testify/assert for all tests in tool_test.go
9 years ago
Matthias Loibl
8f027370f5
Add unit test for base.FileSize()
9 years ago
Matthias Loibl
019ca2b0ae
Start to add tests for modules/base/tool
9 years ago