Skip to content

Commit

Permalink
chore: add codacy coverage.
Browse files Browse the repository at this point in the history
  • Loading branch information
auula committed Sep 10, 2023
1 parent 2c4b183 commit 387bd0d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions conf/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ const (
"mode": "mmap",
"url": "/cql",
"filesize": 1024,
"path": "./_temp/vasedb",
"path": "/tmp/vasedb",
"auth": "password@123",
"log": "./_temp/vasedb/out.log",
"log": "/tmp/vasedb/out.log",
"debug": false,
"encoder": {
"enable": true,
"secret": "./_temp/vasedb/etc/encrypt.wasm"
"secret": "/tmp/vasedb/etc/encrypt.wasm"
},
"compressor": {
"enable": true,
Expand Down
6 changes: 3 additions & 3 deletions config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ vasedb:
port: 2468 # 服务 HTTP 协议端口
mode: mmap # 默认为 Direct/IO,另外可以设置 mmap 模式
filesize: 102400 # 默认个数据文件大小,单位 KB
path: ./_temp/vasedb # 数据库文件存储目录
path: /tmp/vasedb # 数据库文件存储目录
authentication: password@123 # 访问 HTTP 协议的秘密
logging: ./_temp/vasedb/out.log # ClassDB 在运行时程序产生的日志存储文件
logging: /tmp/vasedb/out.log # ClassDB 在运行时程序产生的日志存储文件
debug: FALSE # 是否开启 debug 模式
encoder:
enable: TRUE # 是否开启加密器
secret: ./_temp/vasedb/etc/encrypt.wasm # 自定义加密逻辑实现
secret: /tmp/vasedb/etc/encrypt.wasm # 自定义加密逻辑实现
compressor:
enable: TRUE # 是否开启数据压缩功能
mode: hot # 垃圾回收策略 默认为周期性
Expand Down
2 changes: 1 addition & 1 deletion test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ elif [ "$case_num" -eq 3 ]; then
echo "Testing server package"
elif [ "$case_num" -eq 4 ]; then
cd cmd && go test -c -race -coverprofile=coverage.out -covermode=atomic -v
./cmd.test
sudo ./cmd.test
else
echo "Invalid option. Please provide a valid option (1, 2, or 3)."
fi

0 comments on commit 387bd0d

Please sign in to comment.