paxPayment, ok = dataObject.(*entities.PassengerPayment)
括号用于什么?我不确定这个赋值操作中发生了什么.
您还需要更多细节才能回答这个问题吗?
当我跑go test
,我的输出:
--- FAIL: TestGETSearchSuccess (0.00s)
Location: drivers_api_test.go:283
Error: Not equal: 200 (expected)
!= 204 (actual)
--- FAIL: TestGETCOSearchSuccess (0.00s)
Location: drivers_api_test.go:391
Error: Not equal: 200 (expected)
!= 204 (actual)
Run Code Online (Sandbox Code Playgroud)
但是在我go test
再次运行之后,我的所有测试都通过了.
只有当我重置我的mysql数据库,然后go test
第一次运行时,测试才会失败.
对于每个GET
请求,我POST
之前都会请求确保在数据库中创建数据.
谁能帮助我如何确保测试按顺序运行?那是POST
请求在GET
请求之前运行?
使用以下命令安装自动制作 wget http://ftp.gnu.org/gnu/automake/automake-1.15.tar.gz
./configure --prefix=$HOME/local
对我来说很好。
完成此步骤后,我运行了make
但失败了:
GEN bin/automake
GEN bin/aclocal
GEN t/ax/shell-no-trail-bslash
GEN t/ax/cc-no-c-o
GEN runtest
GEN lib/Automake/Config.pm
GEN doc/aclocal-1.15.1
GEN doc/automake-1.15.1
help2man: can't get `--help' info from automake-1.15
Try `--no-discard-stderr' if option outputs to stderr
make: *** [doc/automake-1.15.1] Error 2
Run Code Online (Sandbox Code Playgroud)
我不知道该怎么办!
另一件事是我尝试运行bin/aclocal
,它说:
Can't locate Automake/Config.pm in @INC (@INC contains: /home/v/varun/local/share/automake-1.15 /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at bin/aclocal line 37.
BEGIN failed--compilation aborted at bin/aclocal line 37.
Run Code Online (Sandbox Code Playgroud)
请帮忙!
您还有其他问题吗?
通常,要编辑我的文件,我需要ssh到主机sunfire
和主机上,我需要ssh到另一台主机xcnc1
.我的文件xcnc1
只能通过我的文件访问sunfire
.
我的问题是如何xcnc1
从本地计算机访问该文件?