2
0
Commit Graph

15 Commits

Author SHA1 Message Date
Ethan Koenig
8395123adb Fix race condition in unit test (#456) 2016-12-23 14:31:22 +08:00
Thomas Boerger
c9e63d8e61 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
2016-12-22 19:12:23 +01:00
Ethan Koenig
eb4274aecc Bug fixes and tests for modules/base (#442)
Also address other TODOs
2016-12-22 16:58:04 +08:00
Denis Denisov
6669a9d490 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
2016-12-20 13:32:02 +01:00
Sandro Santilli
acb138c244 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
2016-11-10 17:24:48 +01:00
Matthias Loibl
5d73d7d90c Add test for IsTextFile() 2016-11-07 23:31:40 +01:00
Matthias Loibl
ebb74eb187 Add test for IsLetter() 2016-11-07 23:31:40 +01:00
Matthias Loibl
90ecbe79d0 Add test for Int64sToMap() 2016-11-07 23:31:40 +01:00
Matthias Loibl
5e45c406b6 Add tests for StringsToInt64s() & Int64sToStrings() 2016-11-07 23:31:40 +01:00
Matthias Loibl
4636836beb Add tests for TruncateString() 2016-11-07 23:31:40 +01:00
Matthias Loibl
a6fcff1c05 Add tests for EllipsisString() and fix bug if param length < 3 2016-11-07 23:31:39 +01:00
Matthias Loibl
aa2ded6f3a Test AvatarLink and refactor with tests passing 2016-11-07 23:31:39 +01:00
Matthias Loibl
77bd7912f9 Use testify/assert for all tests in tool_test.go 2016-11-07 23:29:42 +01:00
Matthias Loibl
3e36c027c5 Add unit test for base.FileSize() 2016-11-07 23:29:42 +01:00
Matthias Loibl
da55a8bf60 Start to add tests for modules/base/tool 2016-11-07 23:29:41 +01:00