Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
beego
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
beego
Commits
4b368d9f
Commit
4b368d9f
authored
Dec 30, 2015
by
Vitaly Velikodny
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactoring: keep config package beego independent
parent
48fd9675
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
10 deletions
+4
-10
ini_test.go
config/ini_test.go
+1
-3
json_test.go
config/json_test.go
+1
-3
xml_test.go
config/xml/xml_test.go
+1
-2
yaml_test.go
config/yaml/yaml_test.go
+1
-2
No files found.
config/ini_test.go
View file @
4b368d9f
...
...
@@ -17,8 +17,6 @@ package config
import
(
"os"
"testing"
"github.com/astaxie/beego"
)
var
inicontext
=
`
...
...
@@ -69,7 +67,7 @@ func TestIni(t *testing.T) {
t
.
Error
(
pi
)
t
.
Fatal
(
err
)
}
if
iniconf
.
String
(
"runmode"
)
!=
beego
.
DEV
{
if
iniconf
.
String
(
"runmode"
)
!=
"dev"
{
t
.
Fatal
(
"runmode not equal to dev"
)
}
if
v
,
err
:=
iniconf
.
Bool
(
"autorender"
);
err
!=
nil
||
v
!=
false
{
...
...
config/json_test.go
View file @
4b368d9f
...
...
@@ -17,8 +17,6 @@ package config
import
(
"os"
"testing"
"github.com/astaxie/beego"
)
var
jsoncontext
=
`{
...
...
@@ -122,7 +120,7 @@ func TestJson(t *testing.T) {
t
.
Error
(
pi
)
t
.
Fatal
(
err
)
}
if
jsonconf
.
String
(
"runmode"
)
!=
beego
.
DEV
{
if
jsonconf
.
String
(
"runmode"
)
!=
"dev"
{
t
.
Fatal
(
"runmode not equal to dev"
)
}
if
v
:=
jsonconf
.
Strings
(
"unknown"
);
len
(
v
)
>
0
{
...
...
config/xml/xml_test.go
View file @
4b368d9f
...
...
@@ -18,7 +18,6 @@ import (
"os"
"testing"
"github.com/astaxie/beego"
"github.com/astaxie/beego/config"
)
...
...
@@ -66,7 +65,7 @@ func TestXML(t *testing.T) {
t
.
Error
(
pi
)
t
.
Fatal
(
err
)
}
if
xmlconf
.
String
(
"runmode"
)
!=
beego
.
DEV
{
if
xmlconf
.
String
(
"runmode"
)
!=
"dev"
{
t
.
Fatal
(
"runmode not equal to dev"
)
}
if
v
,
err
:=
xmlconf
.
Bool
(
"autorender"
);
err
!=
nil
||
v
!=
false
{
...
...
config/yaml/yaml_test.go
View file @
4b368d9f
...
...
@@ -18,7 +18,6 @@ import (
"os"
"testing"
"github.com/astaxie/beego"
"github.com/astaxie/beego/config"
)
...
...
@@ -63,7 +62,7 @@ func TestYaml(t *testing.T) {
t
.
Error
(
pi
)
t
.
Fatal
(
err
)
}
if
yamlconf
.
String
(
"runmode"
)
!=
beego
.
DEV
{
if
yamlconf
.
String
(
"runmode"
)
!=
"dev"
{
t
.
Fatal
(
"runmode not equal to dev"
)
}
if
v
,
err
:=
yamlconf
.
Bool
(
"autorender"
);
err
!=
nil
||
v
!=
false
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment