Bo-Yi Wu
743697a549
refactor: append, build variable and type switch ( #4940 )
...
* refactor: append, build variable and type switch
* fix: remove redundant space.
6 years ago
techknowlogick
46373e7657
Hash App token ( #6724 )
6 years ago
Oleg Kovalov
971dccda16
Use type switch ( #5122 )
6 years ago
Codruț Constantin Gușoi
96c268c0fc
Implements generator cli for secrets ( #3531 )
...
Signed-off-by: Codruț Constantin Gușoi <codrut.gusoi@gmail.com>
7 years ago
Ethan Koenig
ab62da283a
Fix avatar URLs ( #3069 )
...
* Fix avatar URLs
* import order
7 years ago
harry
81d1e54a49
Use identicon image for default gravatar. ( #2767 )
...
* Use identicon image for default gravatar.
* Fixed tests.
7 years ago
Lauris BH
32fc44aa83
Make time diff translatable ( #2057 )
7 years ago
Jonas Östanbäck
b93568cce4
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
f552b0a207
Remove test that touch network
8 years ago
Ethan Koenig
ec1fe1183d
Fix race condition in unit test ( #456 )
8 years ago
Thomas Boerger
b33078fa33
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
8 years ago
Ethan Koenig
4c89a9c33c
Bug fixes and tests for modules/base ( #442 )
...
Also address other TODOs
8 years ago
Denis Denisov
380e32e129
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
8 years ago
Sandro Santilli
4247304f5a
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
8 years ago
Matthias Loibl
e74868a850
Add test for IsTextFile()
8 years ago
Matthias Loibl
2bb188ae79
Add test for IsLetter()
8 years ago
Matthias Loibl
4235fff9ee
Add test for Int64sToMap()
8 years ago
Matthias Loibl
d417aedcfa
Add tests for StringsToInt64s() & Int64sToStrings()
8 years ago
Matthias Loibl
b00d82d679
Add tests for TruncateString()
8 years ago
Matthias Loibl
030ba2894f
Add tests for EllipsisString() and fix bug if param length < 3
8 years ago
Matthias Loibl
f81711f40d
Test AvatarLink and refactor with tests passing
8 years ago
Matthias Loibl
70fb1cf9d1
Use testify/assert for all tests in tool_test.go
8 years ago
Matthias Loibl
d874a9bf6b
Add unit test for base.FileSize()
8 years ago
Matthias Loibl
11c9160cd3
Start to add tests for modules/base/tool
8 years ago