uartois / sonar-golang

Sonarqube plugin for the golang language.
GNU Lesser General Public License v3.0
245 stars 32 forks source link

Question: "java.lang.IllegalArgumentException: expected one element but was..." #43

Closed mrbacus closed 6 years ago

mrbacus commented 6 years ago

Description

Hello,

I just installed sonarqube (docker) and have not analyzed any projects. I am able to pull up sonarqube at localhost in my browser. I can run gometalinter to generate report.xml. I am not able to successfully run sonar-scanner (see logs below). I am hoping somebody might be able to point me at some missing configuration/settings I need to make.

Regards, James

Steps to Reproduce

Run the following two commands from root of project directory:

  1. gometalinter.v1 --fast --checkstyle ./... > report.xml
  2. sonar-scanner

Content of your sonar-project.properties

sonar.projectKey=NearStoreAvailability sonar.projectName=Near Store Availability sonar.projectVersion=1.0 sonar.golint.reportPath=report.xml sonar.coverage.reportPath=coverage.xml sonar.coverage.dtdVerification=false sonar.test.reportPath=test.xml sonar.sources=./

Log of sonar-scanner related to the plugin

INFO: Scanner configuration file: /Users/x3aw/Downloads/sonar-scanner-3.0.3.778-macosx 3/conf/sonar-scanner.properties INFO: Project root configuration file: /Users/x3aw/source/go/src/git.nordstrom.net/cos/near-store-availability/sonar-project.properties INFO: SonarQube Scanner 3.0.3.778 INFO: Java 1.8.0_121 Oracle Corporation (64-bit) INFO: Mac OS X 10.11.6 x86_64 INFO: User cache: /Users/x3aw/.sonar/cache INFO: Publish mode INFO: Load global settings INFO: Load global settings (done) | time=85ms INFO: Server id: AV_0ecowXGmkGPLIqUHI INFO: User cache: /Users/x3aw/.sonar/cache INFO: Load plugins index INFO: Load plugins index (done) | time=50ms INFO: SonarQube server 6.7.0 INFO: Default locale: "en_US", source code encoding: "UTF-8" (analysis is platform dependent) INFO: Process project properties INFO: Load project repositories INFO: Load project repositories (done) | time=18ms INFO: Load quality profiles INFO: Load quality profiles (done) | time=30ms INFO: Load active rules INFO: Load active rules (done) | time=1508ms INFO: Load metrics repository INFO: Load metrics repository (done) | time=80ms INFO: Project key: NearStoreAvailability INFO: ------------- Scan Near Store Availability INFO: Load server rules INFO: Load server rules (done) | time=717ms INFO: Base dir: /Users/x3aw/source/go/src/git.nordstrom.net/cos/near-store-availability INFO: Working dir: /Users/x3aw/source/go/src/git.nordstrom.net/cos/near-store-availability/.scannerwork INFO: Source paths: . INFO: Source encoding: UTF-8, default locale: en_US WARN: Property 'sonar.php.file.suffixes' is not declared as multi-values/property set but was read using 'getStringArray' method. The SonarQube plugin declaring this property should be updated. INFO: Index files INFO: 869 files indexed INFO: Quality profile for go: Golint Rules INFO: Quality profile for js: Sonar way INFO: Quality profile for xml: Sonar way INFO: Sensor SonarJavaXmlFileSensor [java] INFO: 1 source files to be analyzed INFO: Sensor SonarJavaXmlFileSensor [java] (done) | time=243ms INFO: 1/1 source files have been analyzed INFO: Sensor XML Sensor [xml] INFO: Sensor XML Sensor [xml] (done) | time=566ms INFO: Sensor GoMetaLinter issues loader sensor [golang] INFO: Parsing the file report.xml INFO: Parsing 'GoMetaLinter' Analysis Results INFO: ------------------------------------------------------------------------ INFO: EXECUTION FAILURE INFO: ------------------------------------------------------------------------ INFO: Total time: 6.596s INFO: Final Memory: 51M/337M INFO: ------------------------------------------------------------------------ ERROR: Error during SonarQube Scanner execution java.lang.IllegalArgumentException: expected one element but was: <Dockerfile, README.md, adapter/adapter.go, adapter/adapter_test.go, adapter/adapterfakes/fake_adapter.go, ...> at org.sonar.api.batch.fs.internal.DefaultFileSystem.inputFile(DefaultFileSystem.java:135) at fr.univartois.sonargo.core.rules.GoLintIssueLoaderSensor.getResourceAndSaveIssue(GoLintIssueLoaderSensor.java:144) at fr.univartois.sonargo.core.rules.GoLintIssueLoaderSensor.parseAndSaveResults(GoLintIssueLoaderSensor.java:137) at fr.univartois.sonargo.core.rules.GoLintIssueLoaderSensor.execute(GoLintIssueLoaderSensor.java:120) at org.sonar.scanner.sensor.SensorWrapper.analyse(SensorWrapper.java:53) at org.sonar.scanner.phases.SensorsExecutor.executeSensor(SensorsExecutor.java:88) at org.sonar.scanner.phases.SensorsExecutor.execute(SensorsExecutor.java:82) at org.sonar.scanner.phases.SensorsExecutor.execute(SensorsExecutor.java:68) at org.sonar.scanner.phases.AbstractPhaseExecutor.execute(AbstractPhaseExecutor.java:88) at org.sonar.scanner.scan.ModuleScanContainer.doAfterStart(ModuleScanContainer.java:180) at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:135) at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:121) at org.sonar.scanner.scan.ProjectScanContainer.scan(ProjectScanContainer.java:288) at org.sonar.scanner.scan.ProjectScanContainer.scanRecursively(ProjectScanContainer.java:283) at org.sonar.scanner.scan.ProjectScanContainer.doAfterStart(ProjectScanContainer.java:261) at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:135) at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:121) at org.sonar.scanner.task.ScanTask.execute(ScanTask.java:48) at org.sonar.scanner.task.TaskContainer.doAfterStart(TaskContainer.java:84) at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:135) at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:121) at org.sonar.scanner.bootstrap.GlobalContainer.executeTask(GlobalContainer.java:121) at org.sonar.batch.bootstrapper.Batch.doExecuteTask(Batch.java:116) at org.sonar.batch.bootstrapper.Batch.executeTask(Batch.java:111) at org.sonarsource.scanner.api.internal.batch.BatchIsolatedLauncher.execute(BatchIsolatedLauncher.java:63) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.sonarsource.scanner.api.internal.IsolatedLauncherProxy.invoke(IsolatedLauncherProxy.java:60) at com.sun.proxy.$Proxy0.execute(Unknown Source) at org.sonarsource.scanner.api.EmbeddedScanner.doExecute(EmbeddedScanner.java:233) at org.sonarsource.scanner.api.EmbeddedScanner.runAnalysis(EmbeddedScanner.java:151) at org.sonarsource.scanner.cli.Main.runAnalysis(Main.java:123) at org.sonarsource.scanner.cli.Main.execute(Main.java:77) at org.sonarsource.scanner.cli.Main.main(Main.java:61) ERROR: ERROR: Re-run SonarQube Scanner using the -X switch to enable full debug logging.

Versions

Versions of your sonar installation (server, sonar-scanner), gometalinter, go and OS. server: 6.7.0.33306 sonar-scanner: 3.0.3.778-macosx 3 gometalinter: v1 go: 1.8.3 OS: Mac OS X 10.11.6 x86_64

Additional Information

-

juliencampion commented 6 years ago

I've been having the same issue as well.

thibaultfalque commented 6 years ago

Hi, What is your version of plugin?

thibaultfalque commented 6 years ago

What is the --fast option ?

juliencampion commented 6 years ago

I was on the latest RC version (v1.2.11-rc5). Reverting to v1.2.10 fixed the problem for me.

mrbacus commented 6 years ago

I was using plugin 1.2.11-rc5 and switched to v1.2.10 - that resolved my issue. Thanks @juliencampion

@thibaultfalque , I am using --fast to only run "fast linters". Using that gets rid of the errors below which flood my screen. ... WARNING: deadline exceeded by linter vet on source/go/src/golang.org/x/net/dict (try increasing --deadline) WARNING: deadline exceeded by linter vet on source/go/src/golang.org/x/net/internal/socket (try increasing --deadline) WARNING: deadline exceeded by linter vet on source/go/src/golang.org/x/net/internal/nettest (try increasing --deadline) WARNING: deadline exceeded by linter vet on source/go/src/golang.org/x/net/internal/timeseries (try increasing --deadline)

thibaultfalque commented 6 years ago

@mrbacus and @juliencampion can you test the rc6 version ?

juliencampion commented 6 years ago

Using rc6 triggers a NullPointerException. Here is the output log of sonar-scanner -X:

Click to expand ``` Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=on -Dswing.aatext=true 13:13:01.481 INFO: Scanner configuration file: /opt/sonar-scanner/conf/sonar-scanner.properties 13:13:01.485 INFO: Project root configuration file: /home/jcampion/work/go/src/gitlab.com/HumanRevolt/hrserver/sonar-project.properties 13:13:01.498 INFO: SonarQube Scanner 3.0.3.778 13:13:01.498 INFO: Java 1.8.0_144 Oracle Corporation (64-bit) 13:13:01.498 INFO: Linux 4.13.12-1-ARCH amd64 13:13:01.606 DEBUG: keyStore is : 13:13:01.606 DEBUG: keyStore type is : jks 13:13:01.606 DEBUG: keyStore provider is : 13:13:01.606 DEBUG: init keystore 13:13:01.606 DEBUG: init keymanager of type SunX509 13:13:01.674 INFO: User cache: /home/jcampion/.sonar/cache 13:13:01.674 DEBUG: Extract sonar-scanner-api-batch in temp... 13:13:01.680 DEBUG: Get bootstrap index... 13:13:01.680 DEBUG: Download: https://sonar.humanrevolt.com/batch/index 13:13:01.888 DEBUG: Get bootstrap completed 13:13:01.889 DEBUG: Create isolated classloader... 13:13:01.897 DEBUG: Start temp cleaning... 13:13:01.903 DEBUG: Temp cleaning done 13:13:01.903 DEBUG: Execution getVersion 13:13:01.907 DEBUG: Execution start 13:13:02.046 INFO: Publish mode 13:13:02.134 INFO: Load global settings 13:13:02.321 DEBUG: GET 200 https://sonar.humanrevolt.com/api/settings/values.protobuf | time=181ms 13:13:02.338 INFO: Load global settings (done) | time=205ms 13:13:02.344 INFO: Server id: AWACFaQxFVNn6Ukd92QS 13:13:02.350 INFO: User cache: /home/jcampion/.sonar/cache 13:13:02.730 INFO: Load plugins index 13:13:02.763 DEBUG: GET 200 https://sonar.humanrevolt.com/api/plugins/installed | time=33ms 13:13:02.789 INFO: Load plugins index (done) | time=59ms 13:13:02.789 DEBUG: Load plugins 13:13:02.797 DEBUG: Load plugins (done) | time=8ms 13:13:02.808 DEBUG: API compatibility mode is enabled on plugin Android [android] (built with API lower than 5.2) 13:13:02.878 DEBUG: Plugins: 13:13:02.878 DEBUG: * SonarC# 6.5.0.3766 (csharp) 13:13:02.878 DEBUG: * SonarJava 4.15.0.12310 (java) 13:13:02.878 DEBUG: * SonarQube :: Plugins :: SCM :: Git 1.3.0.869 (scmgit) 13:13:02.878 DEBUG: * Android 1.1 (android) 13:13:02.878 DEBUG: * Golang 1.2.11-rc6 (golang) 13:13:02.878 DEBUG: * Swift (Backelite) 0.3.5 (backelitesonarswiftplugin) 13:13:02.878 DEBUG: * SonarQube :: Plugins :: SCM :: SVN 1.6.0.860 (scmsvn) 13:13:02.892 DEBUG: Execution getVersion 13:13:02.892 INFO: SonarQube server 6.7.0 13:13:02.892 INFO: Default locale: "en_US", source code encoding: "UTF-8" (analysis is platform dependent) 13:13:02.893 DEBUG: Work directory: /home/jcampion/work/go/src/gitlab.com/HumanRevolt/hrserver/.scannerwork 13:13:02.893 DEBUG: Execution getVersion 13:13:02.893 DEBUG: Execution execute 13:13:03.235 INFO: Process project properties 13:13:03.241 DEBUG: Process project properties (done) | time=5ms 13:13:03.260 INFO: Load project repositories 13:13:03.320 DEBUG: GET 200 https://sonar.humanrevolt.com/batch/project.protobuf?key=hrserver | time=60ms 13:13:03.366 INFO: Load project repositories (done) | time=106ms 13:13:03.542 DEBUG: Available languages: 13:13:03.543 DEBUG: * C# => "cs" 13:13:03.543 DEBUG: * Java => "java" 13:13:03.543 DEBUG: * GO => "go" 13:13:03.543 DEBUG: * Swift => "swift" 13:13:03.557 INFO: Load quality profiles 13:13:03.648 DEBUG: GET 200 https://sonar.humanrevolt.com/api/qualityprofiles/search.protobuf?projectKey=hrserver | time=91ms 13:13:03.653 INFO: Load quality profiles (done) | time=96ms 13:13:03.662 INFO: Load active rules 13:13:03.981 DEBUG: GET 200 https://sonar.humanrevolt.com/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt&activation=true&qprofile=AWACFp2UFVNn6Ukd92qr&p=1&ps=500 | time=319ms 13:13:04.190 DEBUG: GET 200 https://sonar.humanrevolt.com/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt&activation=true&qprofile=AWADVVbjlUGcHqZjPvX6&p=1&ps=500 | time=146ms 13:13:05.234 DEBUG: GET 200 https://sonar.humanrevolt.com/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt&activation=true&qprofile=AWACFqVWFVNn6Ukd92yL&p=1&ps=500 | time=1033ms 13:13:05.443 DEBUG: GET 200 https://sonar.humanrevolt.com/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt&activation=true&qprofile=AWADSXehNcq2skh99x9k&p=1&ps=500 | time=163ms 13:13:05.478 INFO: Load active rules (done) | time=1816ms 13:13:05.480 INFO: Load metrics repository 13:13:05.525 DEBUG: GET 200 https://sonar.humanrevolt.com/api/metrics/search?f=name,description,direction,qualitative,custom&ps=500&p=1 | time=45ms 13:13:05.541 INFO: Load metrics repository (done) | time=61ms 13:13:05.566 INFO: Project key: hrserver 13:13:05.566 DEBUG: Start recursive analysis of project modules 13:13:05.567 INFO: ------------- Scan hrserver 13:13:05.629 INFO: Load server rules 13:13:05.738 DEBUG: GET 200 https://sonar.humanrevolt.com/api/rules/list.protobuf | time=109ms 13:13:05.774 INFO: Load server rules (done) | time=145ms 13:13:05.799 INFO: Base dir: /home/jcampion/work/go/src/gitlab.com/HumanRevolt/hrserver 13:13:05.799 INFO: Working dir: /home/jcampion/work/go/src/gitlab.com/HumanRevolt/hrserver/.scannerwork 13:13:05.801 INFO: Source paths: . 13:13:05.801 INFO: Source encoding: UTF-8, default locale: en_US 13:13:05.855 DEBUG: Declared extensions of language C# were converted to sonar.lang.patterns.cs : **/*.cs 13:13:05.855 DEBUG: Declared extensions of language Java were converted to sonar.lang.patterns.java : **/*.java,**/*.jav 13:13:05.855 DEBUG: Declared extensions of language GO were converted to sonar.lang.patterns.go : **/*.go 13:13:05.856 DEBUG: Declared extensions of language Swift were converted to sonar.lang.patterns.swift : **/*.swift 13:13:05.856 INFO: Language is forced to go 13:13:05.859 DEBUG: Initializers : 13:13:05.861 INFO: Index files 13:13:05.866 WARN: File '/home/jcampion/work/go/src/gitlab.com/HumanRevolt/hrserver/report.xml' is ignored because it doesn't belong to the forced language 'go' 13:13:05.867 WARN: File '/home/jcampion/work/go/src/gitlab.com/HumanRevolt/hrserver/test.xml' is ignored because it doesn't belong to the forced language 'go' 13:13:05.872 WARN: File '/home/jcampion/work/go/src/gitlab.com/HumanRevolt/hrserver/README.md' is ignored because it doesn't belong to the forced language 'go' 13:13:05.877 WARN: File '/home/jcampion/work/go/src/gitlab.com/HumanRevolt/hrserver/hugoconf.toml.example' is ignored because it doesn't belong to the forced language 'go' 13:13:05.877 WARN: File '/home/jcampion/work/go/src/gitlab.com/HumanRevolt/hrserver/sonar-project.properties' is ignored because it doesn't belong to the forced language 'go' 13:13:05.879 DEBUG: 'inventory/inventory.go' indexed with language 'go' 13:13:05.880 DEBUG: 'db/fortress.go' indexed with language 'go' 13:13:05.880 DEBUG: 'db/scavenging.go' indexed with language 'go' 13:13:05.880 DEBUG: 'db/poll.go' indexed with language 'go' 13:13:05.881 DEBUG: 'db/interestaction.go' indexed with language 'go' 13:13:05.881 DEBUG: 'db/futureinterest.go' indexed with language 'go' 13:13:05.881 WARN: File '/home/jcampion/work/go/src/gitlab.com/HumanRevolt/hrserver/db/cover.out' is ignored because it doesn't belong to the forced language 'go' 13:13:05.881 DEBUG: 'db/db_test.go' indexed with language 'go' 13:13:05.882 DEBUG: 'db/interest.go' indexed with language 'go' 13:13:05.880 DEBUG: 'db/token.go' indexed with language 'go' 13:13:05.882 WARN: File '/home/jcampion/work/go/src/gitlab.com/HumanRevolt/hrserver/db/coverage.xml' is ignored because it doesn't belong to the forced language 'go' 13:13:05.882 DEBUG: 'db/db.go' indexed with language 'go' 13:13:05.882 DEBUG: 'db/config.go' indexed with language 'go' 13:13:05.883 WARN: File '/home/jcampion/work/go/src/gitlab.com/HumanRevolt/hrserver/1' is ignored because it doesn't belong to the forced language 'go' 13:13:05.882 DEBUG: 'db/user.go' indexed with language 'go' 13:13:05.883 WARN: File '/home/jcampion/work/go/src/gitlab.com/HumanRevolt/hrserver/conf.toml' is ignored because it doesn't belong to the forced language 'go' 13:13:05.883 DEBUG: 'hrserver.go' indexed with language 'go' 13:13:05.883 DEBUG: 'api/fortress.go' indexed with language 'go' 13:13:05.883 DEBUG: 'db/location.go' indexed with language 'go' 13:13:05.884 DEBUG: 'api/scavenging.go' indexed with language 'go' 13:13:05.883 DEBUG: 'config.go' indexed with language 'go' 13:13:05.884 DEBUG: 'api/api.go' indexed with language 'go' 13:13:05.884 DEBUG: 'api/poll.go' indexed with language 'go' 13:13:05.884 DEBUG: 'api/inventory.go' indexed with language 'go' 13:13:05.884 DEBUG: 'api/daemon.go' indexed with language 'go' 13:13:05.885 DEBUG: 'api/user.go' indexed with language 'go' 13:13:05.884 DEBUG: 'api/delete_user.go' indexed with language 'go' 13:13:05.885 DEBUG: 'api/interest.go' indexed with language 'go' 13:13:05.885 DEBUG: 'api/config.go' indexed with language 'go' 13:13:05.886 DEBUG: 'api/vision.go' indexed with language 'go'13:13:05.886 WARN: File '/home/jcampion/work/go/src/gitlab.com/HumanRevolt/hrserver/spec.yaml' is ignored because it doesn't belong to the forced language 'go' 13:13:05.886 DEBUG: 'api/middleware.go' indexed with language 'go' 13:13:05.886 INFO: 27 files indexed 13:13:05.887 INFO: Quality profile for go: Golint Rules 13:13:05.958 DEBUG: 'Generic Coverage Report' skipped because one of the required properties is missing 13:13:05.958 DEBUG: 'Generic Test Executions Report' skipped because one of the required properties is missing 13:13:05.959 DEBUG: 'C#' skipped because there is no related file in current project 13:13:05.960 DEBUG: 'C# Tests Coverage Report Import' skipped because there is no related file in current project 13:13:05.960 DEBUG: '[Deprecated] C# Integration Tests Coverage Report Import' skipped because there is no related file in current project 13:13:05.960 DEBUG: 'C# Unit Test Results Import' skipped because there is no related file in current project 13:13:05.961 DEBUG: 'SurefireSensor' skipped because there is no related file in current project 13:13:05.961 DEBUG: 'JaCoCoSensor' skipped because there is no related file in current project 13:13:05.961 DEBUG: 'JavaSquidSensor' skipped because there is no related file in current project 13:13:05.965 DEBUG: 'Generic Coverage Report' skipped because one of the required properties is missing 13:13:05.965 DEBUG: 'Generic Test Executions Report' skipped because one of the required properties is missing 13:13:05.965 DEBUG: 'C#' skipped because there is no related file in current project 13:13:05.966 DEBUG: 'C# Tests Coverage Report Import' skipped because there is no related file in current project 13:13:05.966 DEBUG: '[Deprecated] C# Integration Tests Coverage Report Import' skipped because there is no related file in current project 13:13:05.966 DEBUG: 'C# Unit Test Results Import' skipped because there is no related file in current project 13:13:05.967 DEBUG: 'SurefireSensor' skipped because there is no related file in current project 13:13:05.967 DEBUG: 'JaCoCoSensor' skipped because there is no related file in current project 13:13:05.967 DEBUG: 'JavaSquidSensor' skipped because there is no related file in current project 13:13:05.972 DEBUG: Sensors : Swift Surefire Sensor -> SonarJavaXmlFileSensor -> GoMetaLinter issues loader sensor -> Go Coverage -> Go test JUnit loader sensor -> Go Highlighter Sensor -> Go Metrics Sensor -> Zero Coverage Sensor -> CPD Block Indexer 13:13:05.973 INFO: Sensor Swift Surefire Sensor [backelitesonarswiftplugin] 13:13:05.973 INFO: Processing test reports in /home/jcampion/work/go/src/gitlab.com/HumanRevolt/hrserver/sonar-reports 13:13:05.973 WARN: JUnit report directory not found at /home/jcampion/work/go/src/gitlab.com/HumanRevolt/hrserver/sonar-reports 13:13:05.973 INFO: Sensor Swift Surefire Sensor [backelitesonarswiftplugin] (done) | time=1ms 13:13:05.973 INFO: Sensor SonarJavaXmlFileSensor [java] 13:13:05.974 INFO: Sensor SonarJavaXmlFileSensor [java] (done) | time=1ms 13:13:05.974 INFO: Sensor GoMetaLinter issues loader sensor [golang] 13:13:05.982 INFO: Parsing the file report.xml 13:13:05.982 INFO: Parsing 'GoMetaLinter' Analysis Results 13:13:05.983 DEBUG: Parsing file /home/jcampion/work/go/src/gitlab.com/HumanRevolt/hrserver/report.xml 13:13:06.001 DEBUG: violation found for the file hrserver.go 13:13:06.004 INFO: Load /key.properties 13:13:06.006 INFO: loaded 51 13:13:06.008 WARN: This description "could not import flag (/usr/lib/go/pkg/linux_amd64/flag.a: cannot import, possibly version skew (unknown export format version 5 ("version 5")) - reinstall package)" is not usable 13:13:06.008 WARN: The key for the message could not import flag (/usr/lib/go/pkg/linux_amd64/flag.a: cannot import, possibly version skew (unknown export format version 5 ("version 5")) - reinstall package) is null, issue not saved 13:13:06.010 WARN: This description "could not import fmt (/usr/lib/go/pkg/linux_amd64/fmt.a: cannot import, possibly version skew (unknown export format version 5 ("version 5")) - reinstall package)" is not usable 13:13:06.011 WARN: The key for the message could not import fmt (/usr/lib/go/pkg/linux_amd64/fmt.a: cannot import, possibly version skew (unknown export format version 5 ("version 5")) - reinstall package) is null, issue not saved 13:13:06.012 WARN: This description "could not import io/ioutil (/usr/lib/go/pkg/linux_amd64/io/ioutil.a: cannot import, possibly version skew (unknown export format version 5 ("version 5")) - reinstall package)" is not usable 13:13:06.013 WARN: The key for the message could not import io/ioutil (/usr/lib/go/pkg/linux_amd64/io/ioutil.a: cannot import, possibly version skew (unknown export format version 5 ("version 5")) - reinstall package) is null, issue not saved 13:13:06.014 WARN: This description "could not import log (/usr/lib/go/pkg/linux_amd64/log.a: cannot import, possibly version skew (unknown export format version 5 ("version 5")) - reinstall package)" is not usable 13:13:06.014 WARN: The key for the message could not import log (/usr/lib/go/pkg/linux_amd64/log.a: cannot import, possibly version skew (unknown export format version 5 ("version 5")) - reinstall package) is null, issue not saved 13:13:06.015 WARN: This description "could not import net/http (/usr/lib/go/pkg/linux_amd64/net/http.a: cannot import, possibly version skew (unknown export format version 5 ("version 5")) - reinstall package)" is not usable 13:13:06.016 WARN: The key for the message could not import net/http (/usr/lib/go/pkg/linux_amd64/net/http.a: cannot import, possibly version skew (unknown export format version 5 ("version 5")) - reinstall package) is null, issue not saved 13:13:06.017 WARN: This description "could not import os (/usr/lib/go/pkg/linux_amd64/os.a: cannot import, possibly version skew (unknown export format version 5 ("version 5")) - reinstall package)" is not usable 13:13:06.017 WARN: The key for the message could not import os (/usr/lib/go/pkg/linux_amd64/os.a: cannot import, possibly version skew (unknown export format version 5 ("version 5")) - reinstall package) is null, issue not saved 13:13:06.018 WARN: This description "could not import strconv (/usr/lib/go/pkg/linux_amd64/strconv.a: cannot import, possibly version skew (unknown export format version 5 ("version 5")) - reinstall package)" is not usable 13:13:06.018 WARN: The key for the message could not import strconv (/usr/lib/go/pkg/linux_amd64/strconv.a: cannot import, possibly version skew (unknown export format version 5 ("version 5")) - reinstall package) is null, issue not saved 13:13:06.019 WARN: This description "could not import strings (/usr/lib/go/pkg/linux_amd64/strings.a: cannot import, possibly version skew (unknown export format version 5 ("version 5")) - reinstall package)" is not usable 13:13:06.021 WARN: The key for the message could not import strings (/usr/lib/go/pkg/linux_amd64/strings.a: cannot import, possibly version skew (unknown export format version 5 ("version 5")) - reinstall package) is null, issue not saved 13:13:06.022 WARN: This description "could not import github.com/BurntSushi/toml (/home/jcampion/work/go/pkg/linux_amd64/github.com/BurntSushi/toml.a: cannot import, possibly version skew (unknown export format version 5 ("version 5")) - reinstall package)" is not usable 13:13:06.022 WARN: The key for the message could not import github.com/BurntSushi/toml (/home/jcampion/work/go/pkg/linux_amd64/github.com/BurntSushi/toml.a: cannot import, possibly version skew (unknown export format version 5 ("version 5")) - reinstall package) is null, issue not saved 13:13:06.023 WARN: This description "could not import github.com/gorilla/handlers (/home/jcampion/work/go/pkg/linux_amd64/github.com/gorilla/handlers.a: cannot import, possibly version skew (unknown export format version 5 ("version 5")) - reinstall package)" is not usable 13:13:06.023 WARN: The key for the message could not import github.com/gorilla/handlers (/home/jcampion/work/go/pkg/linux_amd64/github.com/gorilla/handlers.a: cannot import, possibly version skew (unknown export format version 5 ("version 5")) - reinstall package) is null, issue not saved 13:13:06.024 WARN: This description "could not import regexp (/usr/lib/go/pkg/linux_amd64/regexp.a: cannot import, possibly version skew (unknown export format version 5 ("version 5")) - reinstall package)" is not usable 13:13:06.025 WARN: The key for the message could not import regexp (/usr/lib/go/pkg/linux_amd64/regexp.a: cannot import, possibly version skew (unknown export format version 5 ("version 5")) - reinstall package) is null, issue not saved 13:13:06.025 WARN: This description "could not import gitlab.com/HumanRevolt/hrserver/api (/home/jcampion/work/go/pkg/linux_amd64/gitlab.com/HumanRevolt/hrserver/api.a: cannot import, possibly version skew (unknown export format version 5 ("version 5")) - reinstall package)" is not usable 13:13:06.026 WARN: The key for the message could not import gitlab.com/HumanRevolt/hrserver/api (/home/jcampion/work/go/pkg/linux_amd64/gitlab.com/HumanRevolt/hrserver/api.a: cannot import, possibly version skew (unknown export format version 5 ("version 5")) - reinstall package) is null, issue not saved 13:13:06.026 WARN: This description "could not import gitlab.com/HumanRevolt/hrserver/db (/home/jcampion/work/go/pkg/linux_amd64/gitlab.com/HumanRevolt/hrserver/db.a: cannot import, possibly version skew (unknown export format version 5 ("version 5")) - reinstall package)" is not usable 13:13:06.027 WARN: The key for the message could not import gitlab.com/HumanRevolt/hrserver/db (/home/jcampion/work/go/pkg/linux_amd64/gitlab.com/HumanRevolt/hrserver/db.a: cannot import, possibly version skew (unknown export format version 5 ("version 5")) - reinstall package) is null, issue not saved 13:13:06.028 WARN: This description "undeclared name: regexp" is not usable 13:13:06.028 WARN: This issue is create because there is a problem with gometalinter analyse: undeclared name: regexp 13:13:06.028 WARN: This description "undeclared name: strings" is not usable 13:13:06.029 WARN: This issue is create because there is a problem with gometalinter analyse: undeclared name: strings 13:13:06.029 WARN: This description "undeclared name: fmt" is not usable 13:13:06.029 WARN: This issue is create because there is a problem with gometalinter analyse: undeclared name: fmt 13:13:06.030 WARN: This description "undeclared name: os" is not usable 13:13:06.030 WARN: This issue is create because there is a problem with gometalinter analyse: undeclared name: os 13:13:06.031 WARN: This description "undeclared name: os" is not usable 13:13:06.031 WARN: This issue is create because there is a problem with gometalinter analyse: undeclared name: os 13:13:06.032 WARN: This description "undeclared name: fmt" is not usable 13:13:06.032 WARN: This issue is create because there is a problem with gometalinter analyse: undeclared name: fmt 13:13:06.033 WARN: This description "undeclared name: os" is not usable 13:13:06.033 WARN: This issue is create because there is a problem with gometalinter analyse: undeclared name: os 13:13:06.034 WARN: This description "undeclared name: fmt" is not usable 13:13:06.034 WARN: This issue is create because there is a problem with gometalinter analyse: undeclared name: fmt 13:13:06.034 WARN: This description "undeclared name: os" is not usable 13:13:06.035 WARN: This issue is create because there is a problem with gometalinter analyse: undeclared name: os 13:13:06.035 WARN: This description "undeclared name: fmt" is not usable 13:13:06.036 WARN: This issue is create because there is a problem with gometalinter analyse: undeclared name: fmt 13:13:06.036 WARN: This description "undeclared name: os" is not usable 13:13:06.038 WARN: This issue is create because there is a problem with gometalinter analyse: undeclared name: os 13:13:06.039 WARN: This description "undeclared name: flag" is not usable 13:13:06.039 WARN: This issue is create because there is a problem with gometalinter analyse: undeclared name: flag 13:13:06.040 WARN: This description "undeclared name: flag" is not usable 13:13:06.040 WARN: This issue is create because there is a problem with gometalinter analyse: undeclared name: flag 13:13:06.041 WARN: This description "undeclared name: flag" is not usable 13:13:06.041 WARN: This issue is create because there is a problem with gometalinter analyse: undeclared name: flag 13:13:06.042 WARN: This description "undeclared name: flag" is not usable 13:13:06.042 WARN: This issue is create because there is a problem with gometalinter analyse: undeclared name: flag 13:13:06.043 WARN: This description "undeclared name: flag" is not usable 13:13:06.043 WARN: This issue is create because there is a problem with gometalinter analyse: undeclared name: flag 13:13:06.044 WARN: This description "undeclared name: flag" is not usable 13:13:06.044 WARN: This issue is create because there is a problem with gometalinter analyse: undeclared name: flag 13:13:06.045 WARN: This description "undeclared name: os" is not usable 13:13:06.045 WARN: This issue is create because there is a problem with gometalinter analyse: undeclared name: os 13:13:06.045 WARN: This description "undeclared name: flag" is not usable 13:13:06.046 WARN: This issue is create because there is a problem with gometalinter analyse: undeclared name: flag 13:13:06.046 WARN: This description "undeclared name: flag" is not usable 13:13:06.046 WARN: This issue is create because there is a problem with gometalinter analyse: undeclared name: flag 13:13:06.047 WARN: This description "invalid operation: f (variable of type *invalid type) has no field or method Name" is not usable 13:13:06.047 WARN: The key for the message invalid operation: f (variable of type *invalid type) has no field or method Name is null, issue not saved 13:13:06.048 WARN: This description "undeclared name: ioutil" is not usable 13:13:06.048 WARN: This issue is create because there is a problem with gometalinter analyse: undeclared name: ioutil 13:13:06.049 WARN: This description "undeclared name: toml" is not usable 13:13:06.049 WARN: This issue is create because there is a problem with gometalinter analyse: undeclared name: toml 13:13:06.049 WARN: This description "undeclared name: db" is not usable 13:13:06.049 WARN: This issue is create because there is a problem with gometalinter analyse: undeclared name: db 13:13:06.050 WARN: This description "undeclared name: flag" is not usable 13:13:06.050 WARN: This issue is create because there is a problem with gometalinter analyse: undeclared name: flag 13:13:06.050 WARN: This description "undeclared name: api" is not usable 13:13:06.050 WARN: This issue is create because there is a problem with gometalinter analyse: undeclared name: api 13:13:06.051 WARN: This description "undeclared name: handlers" is not usable 13:13:06.051 WARN: This issue is create because there is a problem with gometalinter analyse: undeclared name: handlers 13:13:06.052 WARN: This description "undeclared name: handlers" is not usable 13:13:06.052 WARN: This issue is create because there is a problem with gometalinter analyse: undeclared name: handlers 13:13:06.053 WARN: This description "undeclared name: handlers" is not usable 13:13:06.053 WARN: This issue is create because there is a problem with gometalinter analyse: undeclared name: handlers 13:13:06.053 WARN: This description "undeclared name: handlers" is not usable 13:13:06.055 WARN: This issue is create because there is a problem with gometalinter analyse: undeclared name: handlers 13:13:06.056 WARN: This description "undeclared name: handlers" is not usable 13:13:06.056 WARN: This issue is create because there is a problem with gometalinter analyse: undeclared name: handlers 13:13:06.056 WARN: This description "undeclared name: handlers" is not usable 13:13:06.057 WARN: This issue is create because there is a problem with gometalinter analyse: undeclared name: handlers 13:13:06.057 WARN: This description "undeclared name: http" is not usable 13:13:06.057 WARN: This issue is create because there is a problem with gometalinter analyse: undeclared name: http 13:13:06.058 WARN: This description "undeclared name: api" is not usable 13:13:06.058 WARN: This issue is create because there is a problem with gometalinter analyse: undeclared name: api 13:13:06.058 WARN: This description "undeclared name: handlers" is not usable 13:13:06.058 WARN: This issue is create because there is a problem with gometalinter analyse: undeclared name: handlers 13:13:06.059 WARN: This description "undeclared name: os" is not usable 13:13:06.059 WARN: This issue is create because there is a problem with gometalinter analyse: undeclared name: os 13:13:06.059 WARN: This description "undeclared name: handlers" is not usable 13:13:06.059 WARN: This issue is create because there is a problem with gometalinter analyse: undeclared name: handlers 13:13:06.060 WARN: This description "undeclared name: http" is not usable 13:13:06.060 WARN: This issue is create because there is a problem with gometalinter analyse: undeclared name: http 13:13:06.061 WARN: This description "undeclared name: strconv" is not usable 13:13:06.061 WARN: This issue is create because there is a problem with gometalinter analyse: undeclared name: strconv 13:13:06.061 WARN: This description "undeclared name: log" is not usable 13:13:06.061 WARN: This issue is create because there is a problem with gometalinter analyse: undeclared name: log 13:13:06.062 WARN: This description "undeclared name: api" is not usable 13:13:06.062 WARN: This issue is create because there is a problem with gometalinter analyse: undeclared name: api 13:13:06.063 WARN: This description "undeclared name: flag" is not usable 13:13:06.063 WARN: This issue is create because there is a problem with gometalinter analyse: undeclared name: flag 13:13:06.063 WARN: This description "undeclared name: os" is not usable 13:13:06.063 WARN: This issue is create because there is a problem with gometalinter analyse: undeclared name: os 13:13:06.064 WARN: This description "should use raw string (`...`) with regexp.MustCompile to avoid having to escape twice (S1007)" is not usable 13:13:06.064 WARN: The key for the message should use raw string (`...`) with regexp.MustCompile to avoid having to escape twice (S1007) is null, issue not saved 13:13:06.064 INFO: Sensor GoMetaLinter issues loader sensor [golang] (done) | time=90ms 13:13:06.064 INFO: Sensor Go Coverage [golang] 13:13:06.067 DEBUG: global execlud path null 13:13:06.071 INFO: ------------------------------------------------------------------------ 13:13:06.072 INFO: EXECUTION FAILURE 13:13:06.072 INFO: ------------------------------------------------------------------------ 13:13:06.072 INFO: Total time: 4.608s 13:13:06.145 INFO: Final Memory: 44M/139M 13:13:06.146 INFO: ------------------------------------------------------------------------ 13:13:06.146 ERROR: Error during SonarQube Scanner execution java.lang.NullPointerException at fr.univartois.sonargo.coverage.CoverageSensor.getExcludedPath(CoverageSensor.java:66) at fr.univartois.sonargo.coverage.CoverageSensor.isNotAnExcludedPath(CoverageSensor.java:72) at fr.univartois.sonargo.coverage.CoverageSensor.lambda$createStream$0(CoverageSensor.java:81) at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:174) at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193) at java.util.Iterator.forEachRemaining(Iterator.java:116) at java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1801) at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481) at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471) at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151) at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174) at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:418) at fr.univartois.sonargo.coverage.CoverageSensor.execute(CoverageSensor.java:89) at org.sonar.scanner.sensor.SensorWrapper.analyse(SensorWrapper.java:53) at org.sonar.scanner.phases.SensorsExecutor.executeSensor(SensorsExecutor.java:88) at org.sonar.scanner.phases.SensorsExecutor.execute(SensorsExecutor.java:82) at org.sonar.scanner.phases.SensorsExecutor.execute(SensorsExecutor.java:68) at org.sonar.scanner.phases.AbstractPhaseExecutor.execute(AbstractPhaseExecutor.java:88) at org.sonar.scanner.scan.ModuleScanContainer.doAfterStart(ModuleScanContainer.java:180) at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:135) at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:121) at org.sonar.scanner.scan.ProjectScanContainer.scan(ProjectScanContainer.java:288) at org.sonar.scanner.scan.ProjectScanContainer.scanRecursively(ProjectScanContainer.java:283) at org.sonar.scanner.scan.ProjectScanContainer.doAfterStart(ProjectScanContainer.java:261) at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:135) at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:121) at org.sonar.scanner.task.ScanTask.execute(ScanTask.java:48) at org.sonar.scanner.task.TaskContainer.doAfterStart(TaskContainer.java:84) at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:135) at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:121) at org.sonar.scanner.bootstrap.GlobalContainer.executeTask(GlobalContainer.java:121) at org.sonar.batch.bootstrapper.Batch.doExecuteTask(Batch.java:116) at org.sonar.batch.bootstrapper.Batch.executeTask(Batch.java:111) at org.sonarsource.scanner.api.internal.batch.BatchIsolatedLauncher.execute(BatchIsolatedLauncher.java:63) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.sonarsource.scanner.api.internal.IsolatedLauncherProxy.invoke(IsolatedLauncherProxy.java:60) at com.sun.proxy.$Proxy0.execute(Unknown Source) at org.sonarsource.scanner.api.EmbeddedScanner.doExecute(EmbeddedScanner.java:233) at org.sonarsource.scanner.api.EmbeddedScanner.runAnalysis(EmbeddedScanner.java:151) at org.sonarsource.scanner.cli.Main.runAnalysis(Main.java:123) at org.sonarsource.scanner.cli.Main.execute(Main.java:77) at org.sonarsource.scanner.cli.Main.main(Main.java:61) 13:13:06.148 DEBUG: Execution getVersion 13:13:06.148 DEBUG: Execution stop ```
thibaultfalque commented 6 years ago

I have fix the NullPointerException. Can you test the release rc7?

mrbacus commented 6 years ago

@thibaultfalque , rc7 is working for me. Thanks for the great support.

thibaultfalque commented 6 years ago

You're welcome @mrbacus ! Can you close the issue ?

juliencampion commented 6 years ago

I'm sorry, rc7 still causes problems for me. I will get back to this issue when I find out whether the content of the output log can be shared safely. ^^

juliencampion commented 6 years ago

Here is the full, unedited output of the command sonar-scanner -X on the rc7 version. The command ends with an UnsupportedOperationException. Also, it seems that the plugin tries to interpret each line of the test files as function names, as evidenced by the warning lines.

Click to expand ``` Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=on -Dswing.aatext=true 16:08:06.038 INFO: Scanner configuration file: /opt/sonar-scanner/conf/sonar-scanner.properties 16:08:06.042 INFO: Project root configuration file: /home/jcampion/work/go/src/gitlab.com/HumanRevolt/hrserver/sonar-project.properties 16:08:06.057 INFO: SonarQube Scanner 3.0.3.778 16:08:06.057 INFO: Java 1.8.0_144 Oracle Corporation (64-bit) 16:08:06.057 INFO: Linux 4.13.12-1-ARCH amd64 16:08:06.170 DEBUG: keyStore is : 16:08:06.170 DEBUG: keyStore type is : jks 16:08:06.170 DEBUG: keyStore provider is : 16:08:06.170 DEBUG: init keystore 16:08:06.171 DEBUG: init keymanager of type SunX509 16:08:06.235 INFO: User cache: /home/jcampion/.sonar/cache 16:08:06.238 DEBUG: Extract sonar-scanner-api-batch in temp... 16:08:06.244 DEBUG: Get bootstrap index... 16:08:06.245 DEBUG: Download: https://sonar.humanrevolt.com/batch/index 16:08:06.523 DEBUG: Get bootstrap completed 16:08:06.524 DEBUG: Create isolated classloader... 16:08:06.530 DEBUG: Start temp cleaning... 16:08:06.537 DEBUG: Temp cleaning done 16:08:06.537 DEBUG: Execution getVersion 16:08:06.541 DEBUG: Execution start 16:08:06.681 INFO: Publish mode 16:08:06.773 INFO: Load global settings 16:08:06.967 DEBUG: GET 200 https://sonar.humanrevolt.com/api/settings/values.protobuf | time=189ms 16:08:06.982 INFO: Load global settings (done) | time=210ms 16:08:06.990 INFO: Server id: AWACFaQxFVNn6Ukd92QS 16:08:06.996 INFO: User cache: /home/jcampion/.sonar/cache 16:08:07.380 INFO: Load plugins index 16:08:07.416 DEBUG: GET 200 https://sonar.humanrevolt.com/api/plugins/installed | time=36ms 16:08:07.445 INFO: Load plugins index (done) | time=65ms 16:08:07.445 DEBUG: Load plugins 16:08:07.454 DEBUG: Load plugins (done) | time=9ms 16:08:07.466 DEBUG: API compatibility mode is enabled on plugin Android [android] (built with API lower than 5.2) 16:08:07.535 DEBUG: Plugins: 16:08:07.535 DEBUG: * SonarC# 6.5.0.3766 (csharp) 16:08:07.535 DEBUG: * SonarJava 4.15.0.12310 (java) 16:08:07.536 DEBUG: * SonarQube :: Plugins :: SCM :: Git 1.3.0.869 (scmgit) 16:08:07.536 DEBUG: * Android 1.1 (android) 16:08:07.536 DEBUG: * Golang 1.2.11-rc7 (golang) 16:08:07.537 DEBUG: * Swift (Backelite) 0.3.5 (backelitesonarswiftplugin) 16:08:07.537 DEBUG: * SonarQube :: Plugins :: SCM :: SVN 1.6.0.860 (scmsvn) 16:08:07.549 DEBUG: Execution getVersion 16:08:07.549 INFO: SonarQube server 6.7.0 16:08:07.549 INFO: Default locale: "en_US", source code encoding: "UTF-8" (analysis is platform dependent) 16:08:07.550 DEBUG: Work directory: /home/jcampion/work/go/src/gitlab.com/HumanRevolt/hrserver/.scannerwork 16:08:07.550 DEBUG: Execution getVersion 16:08:07.550 DEBUG: Execution execute 16:08:07.916 INFO: Process project properties 16:08:07.924 DEBUG: Process project properties (done) | time=8ms 16:08:07.943 INFO: Load project repositories 16:08:07.998 DEBUG: GET 200 https://sonar.humanrevolt.com/batch/project.protobuf?key=hrserver | time=55ms 16:08:08.045 INFO: Load project repositories (done) | time=102ms 16:08:08.221 DEBUG: Available languages: 16:08:08.221 DEBUG: * C# => "cs" 16:08:08.221 DEBUG: * Java => "java" 16:08:08.222 DEBUG: * GO => "go" 16:08:08.222 DEBUG: * Swift => "swift" 16:08:08.238 INFO: Load quality profiles 16:08:08.342 DEBUG: GET 200 https://sonar.humanrevolt.com/api/qualityprofiles/search.protobuf?projectKey=hrserver | time=103ms 16:08:08.351 INFO: Load quality profiles (done) | time=113ms 16:08:08.361 INFO: Load active rules 16:08:08.616 DEBUG: GET 200 https://sonar.humanrevolt.com/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt&activation=true&qprofile=AWACFp2UFVNn6Ukd92qr&p=1&ps=500 | time=254ms 16:08:08.821 DEBUG: GET 200 https://sonar.humanrevolt.com/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt&activation=true&qprofile=AWADVVbjlUGcHqZjPvX6&p=1&ps=500 | time=148ms 16:08:09.742 DEBUG: GET 200 https://sonar.humanrevolt.com/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt&activation=true&qprofile=AWACFqVWFVNn6Ukd92yL&p=1&ps=500 | time=905ms 16:08:09.919 DEBUG: GET 200 https://sonar.humanrevolt.com/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt&activation=true&qprofile=AWADSXehNcq2skh99x9k&p=1&ps=500 | time=140ms 16:08:09.941 INFO: Load active rules (done) | time=1580ms 16:08:09.945 INFO: Load metrics repository 16:08:09.998 DEBUG: GET 200 https://sonar.humanrevolt.com/api/metrics/search?f=name,description,direction,qualitative,custom&ps=500&p=1 | time=52ms 16:08:10.013 INFO: Load metrics repository (done) | time=68ms 16:08:10.040 INFO: Project key: hrserver 16:08:10.041 DEBUG: Start recursive analysis of project modules 16:08:10.041 INFO: ------------- Scan hrserver 16:08:10.103 INFO: Load server rules 16:08:10.187 DEBUG: GET 200 https://sonar.humanrevolt.com/api/rules/list.protobuf | time=84ms 16:08:10.204 INFO: Load server rules (done) | time=101ms 16:08:10.229 INFO: Base dir: /home/jcampion/work/go/src/gitlab.com/HumanRevolt/hrserver 16:08:10.230 INFO: Working dir: /home/jcampion/work/go/src/gitlab.com/HumanRevolt/hrserver/.scannerwork 16:08:10.231 INFO: Source paths: . 16:08:10.231 INFO: Source encoding: UTF-8, default locale: en_US 16:08:10.286 DEBUG: Declared extensions of language C# were converted to sonar.lang.patterns.cs : **/*.cs 16:08:10.287 DEBUG: Declared extensions of language Java were converted to sonar.lang.patterns.java : **/*.java,**/*.jav 16:08:10.287 DEBUG: Declared extensions of language GO were converted to sonar.lang.patterns.go : **/*.go 16:08:10.287 DEBUG: Declared extensions of language Swift were converted to sonar.lang.patterns.swift : **/*.swift 16:08:10.287 INFO: Language is forced to go 16:08:10.291 DEBUG: Initializers : 16:08:10.293 INFO: Index files 16:08:10.307 WARN: File '/home/jcampion/work/go/src/gitlab.com/HumanRevolt/hrserver/report.xml' is ignored because it doesn't belong to the forced language 'go' 16:08:10.312 WARN: File '/home/jcampion/work/go/src/gitlab.com/HumanRevolt/hrserver/README.md' is ignored because it doesn't belong to the forced language 'go' 16:08:10.304 WARN: File '/home/jcampion/work/go/src/gitlab.com/HumanRevolt/hrserver/test.xml' is ignored because it doesn't belong to the forced language 'go' 16:08:10.316 WARN: File '/home/jcampion/work/go/src/gitlab.com/HumanRevolt/hrserver/sonar-project.properties' is ignored because it doesn't belong to the forced language 'go' 16:08:10.317 WARN: File '/home/jcampion/work/go/src/gitlab.com/HumanRevolt/hrserver/hugoconf.toml.example' is ignored because it doesn't belong to the forced language 'go' 16:08:10.328 DEBUG: 'inventory/inventory.go' indexed with language 'go' 16:08:10.330 DEBUG: 'db/fortress.go' indexed with language 'go' 16:08:10.330 DEBUG: 'db/token.go' indexed with language 'go' 16:08:10.331 DEBUG: 'db/poll.go' indexed with language 'go' 16:08:10.331 DEBUG: 'db/interestaction.go' indexed with language 'go'16:08:10.331 WARN: File '/home/jcampion/work/go/src/gitlab.com/HumanRevolt/hrserver/db/cover.out' is ignored because it doesn't belong to the forced language 'go' 16:08:10.335 DEBUG: 'db/db_test.go' indexed with language 'go' 16:08:10.335 DEBUG: 'db/user.go' indexed with language 'go' 16:08:10.335 DEBUG: 'db/interest.go' indexed with language 'go' 16:08:10.336 DEBUG: 'db/db.go' indexed with language 'go' 16:08:10.336 WARN: File '/home/jcampion/work/go/src/gitlab.com/HumanRevolt/hrserver/db/coverage.xml' is ignored because it doesn't belong to the forced language 'go' 16:08:10.337 DEBUG: 'db/config.go' indexed with language 'go' 16:08:10.337 DEBUG: 'db/location.go' indexed with language 'go' 16:08:10.331 DEBUG: 'db/scavenging.go' indexed with language 'go' 16:08:10.331 DEBUG: 'db/futureinterest.go' indexed with language 'go' 16:08:10.339 WARN: File '/home/jcampion/work/go/src/gitlab.com/HumanRevolt/hrserver/report.txt' is ignored because it doesn't belong to the forced language 'go' 16:08:10.340 DEBUG: 'hrserver.go' indexed with language 'go' 16:08:10.340 DEBUG: 'config.go' indexed with language 'go' 16:08:10.341 DEBUG: 'api/fortress.go' indexed with language 'go' 16:08:10.341 DEBUG: 'api/scavenging.go' indexed with language 'go' 16:08:10.341 DEBUG: 'api/api.go' indexed with language 'go' 16:08:10.342 DEBUG: 'api/poll.go' indexed with language 'go' 16:08:10.342 DEBUG: 'api/daemon.go' indexed with language 'go' 16:08:10.342 DEBUG: 'api/delete_user.go' indexed with language 'go' 16:08:10.342 DEBUG: 'api/inventory.go' indexed with language 'go' 16:08:10.343 DEBUG: 'api/middleware.go' indexed with language 'go' 16:08:10.343 DEBUG: 'api/user.go' indexed with language 'go' 16:08:10.344 DEBUG: 'api/interest.go' indexed with language 'go' 16:08:10.344 DEBUG: 'api/config.go' indexed with language 'go' 16:08:10.344 DEBUG: 'api/vision.go' indexed with language 'go' 16:08:10.344 WARN: File '/home/jcampion/work/go/src/gitlab.com/HumanRevolt/hrserver/spec.yaml' is ignored because it doesn't belong to the forced language 'go' 16:08:10.345 WARN: File '/home/jcampion/work/go/src/gitlab.com/HumanRevolt/hrserver/conf.toml' is ignored because it doesn't belong to the forced language 'go' 16:08:10.347 INFO: 27 files indexed 16:08:10.351 INFO: Quality profile for go: Golint Rules 16:08:10.436 DEBUG: 'Generic Coverage Report' skipped because one of the required properties is missing 16:08:10.437 DEBUG: 'Generic Test Executions Report' skipped because one of the required properties is missing 16:08:10.438 DEBUG: 'C#' skipped because there is no related file in current project 16:08:10.441 DEBUG: 'C# Tests Coverage Report Import' skipped because there is no related file in current project 16:08:10.442 DEBUG: '[Deprecated] C# Integration Tests Coverage Report Import' skipped because there is no related file in current project 16:08:10.443 DEBUG: 'C# Unit Test Results Import' skipped because there is no related file in current project 16:08:10.443 DEBUG: 'SurefireSensor' skipped because there is no related file in current project 16:08:10.445 DEBUG: 'JaCoCoSensor' skipped because there is no related file in current project 16:08:10.446 DEBUG: 'JavaSquidSensor' skipped because there is no related file in current project 16:08:10.452 DEBUG: 'Generic Coverage Report' skipped because one of the required properties is missing 16:08:10.453 DEBUG: 'Generic Test Executions Report' skipped because one of the required properties is missing 16:08:10.453 DEBUG: 'C#' skipped because there is no related file in current project 16:08:10.455 DEBUG: 'C# Tests Coverage Report Import' skipped because there is no related file in current project 16:08:10.457 DEBUG: '[Deprecated] C# Integration Tests Coverage Report Import' skipped because there is no related file in current project 16:08:10.457 DEBUG: 'C# Unit Test Results Import' skipped because there is no related file in current project 16:08:10.458 DEBUG: 'SurefireSensor' skipped because there is no related file in current project 16:08:10.458 DEBUG: 'JaCoCoSensor' skipped because there is no related file in current project 16:08:10.459 DEBUG: 'JavaSquidSensor' skipped because there is no related file in current project 16:08:10.464 DEBUG: Sensors : Swift Surefire Sensor -> SonarJavaXmlFileSensor -> GoMetaLinter issues loader sensor -> Go Coverage -> Go test JUnit loader sensor -> Go Highlighter Sensor -> Go Metrics Sensor -> Zero Coverage Sensor -> CPD Block Indexer 16:08:10.464 INFO: Sensor Swift Surefire Sensor [backelitesonarswiftplugin] 16:08:10.465 INFO: Processing test reports in /home/jcampion/work/go/src/gitlab.com/HumanRevolt/hrserver/sonar-reports 16:08:10.465 WARN: JUnit report directory not found at /home/jcampion/work/go/src/gitlab.com/HumanRevolt/hrserver/sonar-reports 16:08:10.465 INFO: Sensor Swift Surefire Sensor [backelitesonarswiftplugin] (done) | time=1ms 16:08:10.465 INFO: Sensor SonarJavaXmlFileSensor [java] 16:08:10.468 INFO: Sensor SonarJavaXmlFileSensor [java] (done) | time=3ms 16:08:10.470 INFO: Sensor GoMetaLinter issues loader sensor [golang] 16:08:10.482 INFO: Parsing the file report.xml 16:08:10.482 INFO: Parsing 'GoMetaLinter' Analysis Results 16:08:10.483 DEBUG: Parsing file /home/jcampion/work/go/src/gitlab.com/HumanRevolt/hrserver/report.xml 16:08:10.504 DEBUG: violation found for the file hrserver.go 16:08:10.507 INFO: Load /key.properties 16:08:10.509 INFO: loaded 51 16:08:10.512 WARN: This description "could not import flag (/usr/lib/go/pkg/linux_amd64/flag.a: cannot import, possibly version skew (unknown export format version 5 ("version 5")) - reinstall package)" is not usable 16:08:10.512 WARN: The key for the message could not import flag (/usr/lib/go/pkg/linux_amd64/flag.a: cannot import, possibly version skew (unknown export format version 5 ("version 5")) - reinstall package) is null, issue not saved 16:08:10.514 WARN: This description "could not import fmt (/usr/lib/go/pkg/linux_amd64/fmt.a: cannot import, possibly version skew (unknown export format version 5 ("version 5")) - reinstall package)" is not usable 16:08:10.515 WARN: The key for the message could not import fmt (/usr/lib/go/pkg/linux_amd64/fmt.a: cannot import, possibly version skew (unknown export format version 5 ("version 5")) - reinstall package) is null, issue not saved 16:08:10.517 WARN: This description "could not import io/ioutil (/usr/lib/go/pkg/linux_amd64/io/ioutil.a: cannot import, possibly version skew (unknown export format version 5 ("version 5")) - reinstall package)" is not usable 16:08:10.517 WARN: The key for the message could not import io/ioutil (/usr/lib/go/pkg/linux_amd64/io/ioutil.a: cannot import, possibly version skew (unknown export format version 5 ("version 5")) - reinstall package) is null, issue not saved 16:08:10.519 WARN: This description "could not import log (/usr/lib/go/pkg/linux_amd64/log.a: cannot import, possibly version skew (unknown export format version 5 ("version 5")) - reinstall package)" is not usable 16:08:10.519 WARN: The key for the message could not import log (/usr/lib/go/pkg/linux_amd64/log.a: cannot import, possibly version skew (unknown export format version 5 ("version 5")) - reinstall package) is null, issue not saved 16:08:10.521 WARN: This description "could not import net/http (/usr/lib/go/pkg/linux_amd64/net/http.a: cannot import, possibly version skew (unknown export format version 5 ("version 5")) - reinstall package)" is not usable 16:08:10.521 WARN: The key for the message could not import net/http (/usr/lib/go/pkg/linux_amd64/net/http.a: cannot import, possibly version skew (unknown export format version 5 ("version 5")) - reinstall package) is null, issue not saved 16:08:10.524 WARN: This description "could not import os (/usr/lib/go/pkg/linux_amd64/os.a: cannot import, possibly version skew (unknown export format version 5 ("version 5")) - reinstall package)" is not usable 16:08:10.524 WARN: The key for the message could not import os (/usr/lib/go/pkg/linux_amd64/os.a: cannot import, possibly version skew (unknown export format version 5 ("version 5")) - reinstall package) is null, issue not saved 16:08:10.526 WARN: This description "could not import strconv (/usr/lib/go/pkg/linux_amd64/strconv.a: cannot import, possibly version skew (unknown export format version 5 ("version 5")) - reinstall package)" is not usable 16:08:10.526 WARN: The key for the message could not import strconv (/usr/lib/go/pkg/linux_amd64/strconv.a: cannot import, possibly version skew (unknown export format version 5 ("version 5")) - reinstall package) is null, issue not saved 16:08:10.529 WARN: This description "could not import strings (/usr/lib/go/pkg/linux_amd64/strings.a: cannot import, possibly version skew (unknown export format version 5 ("version 5")) - reinstall package)" is not usable 16:08:10.535 WARN: The key for the message could not import strings (/usr/lib/go/pkg/linux_amd64/strings.a: cannot import, possibly version skew (unknown export format version 5 ("version 5")) - reinstall package) is null, issue not saved 16:08:10.536 WARN: This description "could not import github.com/BurntSushi/toml (/home/jcampion/work/go/pkg/linux_amd64/github.com/BurntSushi/toml.a: cannot import, possibly version skew (unknown export format version 5 ("version 5")) - reinstall package)" is not usable 16:08:10.538 WARN: The key for the message could not import github.com/BurntSushi/toml (/home/jcampion/work/go/pkg/linux_amd64/github.com/BurntSushi/toml.a: cannot import, possibly version skew (unknown export format version 5 ("version 5")) - reinstall package) is null, issue not saved 16:08:10.538 WARN: This description "could not import github.com/gorilla/handlers (/home/jcampion/work/go/pkg/linux_amd64/github.com/gorilla/handlers.a: cannot import, possibly version skew (unknown export format version 5 ("version 5")) - reinstall package)" is not usable 16:08:10.539 WARN: The key for the message could not import github.com/gorilla/handlers (/home/jcampion/work/go/pkg/linux_amd64/github.com/gorilla/handlers.a: cannot import, possibly version skew (unknown export format version 5 ("version 5")) - reinstall package) is null, issue not saved 16:08:10.539 WARN: This description "could not import regexp (/usr/lib/go/pkg/linux_amd64/regexp.a: cannot import, possibly version skew (unknown export format version 5 ("version 5")) - reinstall package)" is not usable 16:08:10.540 WARN: The key for the message could not import regexp (/usr/lib/go/pkg/linux_amd64/regexp.a: cannot import, possibly version skew (unknown export format version 5 ("version 5")) - reinstall package) is null, issue not saved 16:08:10.541 WARN: This description "could not import gitlab.com/HumanRevolt/hrserver/api (/home/jcampion/work/go/pkg/linux_amd64/gitlab.com/HumanRevolt/hrserver/api.a: cannot import, possibly version skew (unknown export format version 5 ("version 5")) - reinstall package)" is not usable 16:08:10.542 WARN: The key for the message could not import gitlab.com/HumanRevolt/hrserver/api (/home/jcampion/work/go/pkg/linux_amd64/gitlab.com/HumanRevolt/hrserver/api.a: cannot import, possibly version skew (unknown export format version 5 ("version 5")) - reinstall package) is null, issue not saved 16:08:10.543 WARN: This description "could not import gitlab.com/HumanRevolt/hrserver/db (/home/jcampion/work/go/pkg/linux_amd64/gitlab.com/HumanRevolt/hrserver/db.a: cannot import, possibly version skew (unknown export format version 5 ("version 5")) - reinstall package)" is not usable 16:08:10.543 WARN: The key for the message could not import gitlab.com/HumanRevolt/hrserver/db (/home/jcampion/work/go/pkg/linux_amd64/gitlab.com/HumanRevolt/hrserver/db.a: cannot import, possibly version skew (unknown export format version 5 ("version 5")) - reinstall package) is null, issue not saved 16:08:10.544 WARN: This description "undeclared name: regexp" is not usable 16:08:10.544 WARN: This issue is create because there is a problem with gometalinter analyse: undeclared name: regexp 16:08:10.545 WARN: This description "undeclared name: strings" is not usable 16:08:10.545 WARN: This issue is create because there is a problem with gometalinter analyse: undeclared name: strings 16:08:10.546 WARN: This description "undeclared name: fmt" is not usable 16:08:10.546 WARN: This issue is create because there is a problem with gometalinter analyse: undeclared name: fmt 16:08:10.547 WARN: This description "undeclared name: os" is not usable 16:08:10.548 WARN: This issue is create because there is a problem with gometalinter analyse: undeclared name: os 16:08:10.548 WARN: This description "undeclared name: os" is not usable 16:08:10.549 WARN: This issue is create because there is a problem with gometalinter analyse: undeclared name: os 16:08:10.550 WARN: This description "undeclared name: fmt" is not usable 16:08:10.550 WARN: This issue is create because there is a problem with gometalinter analyse: undeclared name: fmt 16:08:10.551 WARN: This description "undeclared name: os" is not usable 16:08:10.552 WARN: This issue is create because there is a problem with gometalinter analyse: undeclared name: os 16:08:10.553 WARN: This description "undeclared name: fmt" is not usable 16:08:10.553 WARN: This issue is create because there is a problem with gometalinter analyse: undeclared name: fmt 16:08:10.554 WARN: This description "undeclared name: os" is not usable 16:08:10.554 WARN: This issue is create because there is a problem with gometalinter analyse: undeclared name: os 16:08:10.555 WARN: This description "undeclared name: fmt" is not usable 16:08:10.557 WARN: This issue is create because there is a problem with gometalinter analyse: undeclared name: fmt 16:08:10.559 WARN: This description "undeclared name: os" is not usable 16:08:10.559 WARN: This issue is create because there is a problem with gometalinter analyse: undeclared name: os 16:08:10.560 WARN: This description "undeclared name: flag" is not usable 16:08:10.560 WARN: This issue is create because there is a problem with gometalinter analyse: undeclared name: flag 16:08:10.561 WARN: This description "undeclared name: flag" is not usable 16:08:10.561 WARN: This issue is create because there is a problem with gometalinter analyse: undeclared name: flag 16:08:10.562 WARN: This description "undeclared name: flag" is not usable 16:08:10.562 WARN: This issue is create because there is a problem with gometalinter analyse: undeclared name: flag 16:08:10.563 WARN: This description "undeclared name: flag" is not usable 16:08:10.563 WARN: This issue is create because there is a problem with gometalinter analyse: undeclared name: flag 16:08:10.564 WARN: This description "undeclared name: flag" is not usable 16:08:10.564 WARN: This issue is create because there is a problem with gometalinter analyse: undeclared name: flag 16:08:10.565 WARN: This description "undeclared name: flag" is not usable 16:08:10.565 WARN: This issue is create because there is a problem with gometalinter analyse: undeclared name: flag 16:08:10.566 WARN: This description "undeclared name: os" is not usable 16:08:10.566 WARN: This issue is create because there is a problem with gometalinter analyse: undeclared name: os 16:08:10.567 WARN: This description "undeclared name: flag" is not usable 16:08:10.567 WARN: This issue is create because there is a problem with gometalinter analyse: undeclared name: flag 16:08:10.568 WARN: This description "undeclared name: flag" is not usable 16:08:10.568 WARN: This issue is create because there is a problem with gometalinter analyse: undeclared name: flag 16:08:10.569 WARN: This description "invalid operation: f (variable of type *invalid type) has no field or method Name" is not usable 16:08:10.569 WARN: The key for the message invalid operation: f (variable of type *invalid type) has no field or method Name is null, issue not saved 16:08:10.570 WARN: This description "undeclared name: ioutil" is not usable 16:08:10.570 WARN: This issue is create because there is a problem with gometalinter analyse: undeclared name: ioutil 16:08:10.571 WARN: This description "undeclared name: toml" is not usable 16:08:10.571 WARN: This issue is create because there is a problem with gometalinter analyse: undeclared name: toml 16:08:10.572 WARN: This description "undeclared name: db" is not usable 16:08:10.574 WARN: This issue is create because there is a problem with gometalinter analyse: undeclared name: db 16:08:10.575 WARN: This description "undeclared name: flag" is not usable 16:08:10.575 WARN: This issue is create because there is a problem with gometalinter analyse: undeclared name: flag 16:08:10.576 WARN: This description "undeclared name: api" is not usable 16:08:10.576 WARN: This issue is create because there is a problem with gometalinter analyse: undeclared name: api 16:08:10.577 WARN: This description "undeclared name: handlers" is not usable 16:08:10.577 WARN: This issue is create because there is a problem with gometalinter analyse: undeclared name: handlers 16:08:10.578 WARN: This description "undeclared name: handlers" is not usable 16:08:10.578 WARN: This issue is create because there is a problem with gometalinter analyse: undeclared name: handlers 16:08:10.579 WARN: This description "undeclared name: handlers" is not usable 16:08:10.579 WARN: This issue is create because there is a problem with gometalinter analyse: undeclared name: handlers 16:08:10.580 WARN: This description "undeclared name: handlers" is not usable 16:08:10.580 WARN: This issue is create because there is a problem with gometalinter analyse: undeclared name: handlers 16:08:10.581 WARN: This description "undeclared name: handlers" is not usable 16:08:10.581 WARN: This issue is create because there is a problem with gometalinter analyse: undeclared name: handlers 16:08:10.582 WARN: This description "undeclared name: handlers" is not usable 16:08:10.582 WARN: This issue is create because there is a problem with gometalinter analyse: undeclared name: handlers 16:08:10.583 WARN: This description "undeclared name: http" is not usable 16:08:10.583 WARN: This issue is create because there is a problem with gometalinter analyse: undeclared name: http 16:08:10.583 WARN: This description "undeclared name: api" is not usable 16:08:10.584 WARN: This issue is create because there is a problem with gometalinter analyse: undeclared name: api 16:08:10.584 WARN: This description "undeclared name: handlers" is not usable 16:08:10.584 WARN: This issue is create because there is a problem with gometalinter analyse: undeclared name: handlers 16:08:10.585 WARN: This description "undeclared name: os" is not usable 16:08:10.585 WARN: This issue is create because there is a problem with gometalinter analyse: undeclared name: os 16:08:10.586 WARN: This description "undeclared name: handlers" is not usable 16:08:10.586 WARN: This issue is create because there is a problem with gometalinter analyse: undeclared name: handlers 16:08:10.587 WARN: This description "undeclared name: http" is not usable 16:08:10.587 WARN: This issue is create because there is a problem with gometalinter analyse: undeclared name: http 16:08:10.588 WARN: This description "undeclared name: strconv" is not usable 16:08:10.588 WARN: This issue is create because there is a problem with gometalinter analyse: undeclared name: strconv 16:08:10.589 WARN: This description "undeclared name: log" is not usable 16:08:10.589 WARN: This issue is create because there is a problem with gometalinter analyse: undeclared name: log 16:08:10.591 WARN: This description "undeclared name: api" is not usable 16:08:10.592 WARN: This issue is create because there is a problem with gometalinter analyse: undeclared name: api 16:08:10.592 WARN: This description "undeclared name: flag" is not usable 16:08:10.593 WARN: This issue is create because there is a problem with gometalinter analyse: undeclared name: flag 16:08:10.593 WARN: This description "undeclared name: os" is not usable 16:08:10.594 WARN: This issue is create because there is a problem with gometalinter analyse: undeclared name: os 16:08:10.595 WARN: This description "should use raw string (`...`) with regexp.MustCompile to avoid having to escape twice (S1007)" is not usable 16:08:10.595 WARN: The key for the message should use raw string (`...`) with regexp.MustCompile to avoid having to escape twice (S1007) is null, issue not saved 16:08:10.595 INFO: Sensor GoMetaLinter issues loader sensor [golang] (done) | time=126ms 16:08:10.596 INFO: Sensor Go Coverage [golang] 16:08:10.602 DEBUG: global execlud path null 16:08:10.602 DEBUG: global execlud path null 16:08:10.604 DEBUG: global execlud path null 16:08:10.604 DEBUG: global execlud path null 16:08:10.604 DEBUG: global execlud path null 16:08:10.605 DEBUG: global execlud path null 16:08:10.605 DEBUG: global execlud path null 16:08:10.655 DEBUG: global execlud path null 16:08:10.661 DEBUG: global execlud path null 16:08:10.661 DEBUG: global execlud path null 16:08:10.661 DEBUG: global execlud path null 16:08:10.661 DEBUG: global execlud path null 16:08:10.661 DEBUG: global execlud path null 16:08:10.662 DEBUG: global execlud path null 16:08:10.662 DEBUG: global execlud path null 16:08:10.662 DEBUG: global execlud path null 16:08:10.662 DEBUG: global execlud path null 16:08:10.663 DEBUG: global execlud path null 16:08:10.663 DEBUG: global execlud path null 16:08:10.663 DEBUG: global execlud path null 16:08:10.663 DEBUG: global execlud path null 16:08:10.663 DEBUG: global execlud path null 16:08:10.663 DEBUG: global execlud path null 16:08:10.664 DEBUG: global execlud path null 16:08:10.666 DEBUG: global execlud path null 16:08:10.666 DEBUG: global execlud path null 16:08:10.667 DEBUG: global execlud path null 16:08:10.667 DEBUG: global execlud path null 16:08:10.667 DEBUG: global execlud path null 16:08:10.667 DEBUG: global execlud path null 16:08:10.667 DEBUG: global execlud path null 16:08:10.667 DEBUG: global execlud path null 16:08:10.668 DEBUG: global execlud path null 16:08:10.668 DEBUG: global execlud path null 16:08:10.668 DEBUG: global execlud path null 16:08:10.668 DEBUG: global execlud path null 16:08:10.668 DEBUG: global execlud path null 16:08:10.668 DEBUG: global execlud path null 16:08:10.668 DEBUG: global execlud path null 16:08:10.669 DEBUG: global execlud path null 16:08:10.669 DEBUG: global execlud path null 16:08:10.669 INFO: Sensor Go Coverage [golang] (done) | time=73ms 16:08:10.669 INFO: Sensor Go test JUnit loader sensor [golang] 16:08:10.706 INFO: search test function in /home/jcampion/work/go/src/gitlab.com/HumanRevolt/hrserver/db/db_test.go 16:08:10.709 WARN: This function name is not correct: package db 16:08:10.710 WARN: This function name is not correct: 16:08:10.710 WARN: This function name is not correct: import ( 16:08:10.713 WARN: This function name is not correct: "io/ioutil" 16:08:10.716 WARN: This function name is not correct: "os" 16:08:10.716 WARN: This function name is not correct: "testing" 16:08:10.717 WARN: This function name is not correct: 16:08:10.717 WARN: This function name is not correct: "time" 16:08:10.719 WARN: This function name is not correct: 16:08:10.719 WARN: This function name is not correct: mgo "gopkg.in/mgo.v2" 16:08:10.719 WARN: This function name is not correct: "gopkg.in/mgo.v2/bson" 16:08:10.719 WARN: This function name is not correct: "gopkg.in/mgo.v2/dbtest" 16:08:10.719 WARN: This function name is not correct: ) 16:08:10.719 WARN: This function name is not correct: 16:08:10.719 WARN: This function name is not correct: var dbAccess *mgo.Database 16:08:10.720 WARN: This function name is not correct: 16:08:10.720 INFO: Create the key db_test.go#TestMain 16:08:10.720 WARN: This function name is not correct: dir, dirErr := ioutil.TempDir("", "") 16:08:10.720 WARN: This function name is not correct: if dirErr != nil { 16:08:10.720 WARN: This function name is not correct: panic(dirErr) 16:08:10.720 WARN: This function name is not correct: } 16:08:10.720 WARN: This function name is not correct: server := dbtest.DBServer{} 16:08:10.721 WARN: This function name is not correct: server.SetPath(dir) 16:08:10.721 WARN: This function name is not correct: session := server.Session() 16:08:10.721 WARN: This function name is not correct: dbAccess = session.DB("revolt") 16:08:10.721 WARN: This function name is not correct: code := m.Run() 16:08:10.721 WARN: This function name is not correct: session.Close() 16:08:10.721 WARN: This function name is not correct: server.Stop() 16:08:10.721 WARN: This function name is not correct: if err := os.RemoveAll(dir); err != nil { 16:08:10.721 WARN: This function name is not correct: panic(err) 16:08:10.721 WARN: This function name is not correct: } 16:08:10.722 WARN: This function name is not correct: os.Exit(code) 16:08:10.722 WARN: This function name is not correct: } 16:08:10.722 WARN: This function name is not correct: 16:08:10.722 INFO: Create the key db_test.go#TestFortressCreation 16:08:10.722 WARN: This function name is not correct: db := Db{dbAccess} 16:08:10.722 WARN: This function name is not correct: if err := db.Wipe(); err != nil { 16:08:10.722 WARN: This function name is not correct: t.Fatal(err) 16:08:10.722 WARN: This function name is not correct: } 16:08:10.723 WARN: This function name is not correct: fortress, fortressErr := db.CreateFortress("Elliot", 1, 2) 16:08:10.723 WARN: This function name is not correct: if fortressErr != nil { 16:08:10.723 WARN: This function name is not correct: t.Fatalf("Error while calling db.CreateFortress: %v\n", fortressErr) 16:08:10.725 WARN: This function name is not correct: } 16:08:10.725 WARN: This function name is not correct: if fortress.ID == bson.ObjectId("") { 16:08:10.725 WARN: This function name is not correct: t.Error("Expected fortress.ID to not be empty") 16:08:10.726 WARN: This function name is not correct: } 16:08:10.726 WARN: This function name is not correct: if fortress.Name != "Elliot" { 16:08:10.726 WARN: This function name is not correct: t.Errorf("Expected fortress.Name to be Elliot, got %v\n", fortress.Name) 16:08:10.726 WARN: This function name is not correct: } 16:08:10.727 WARN: This function name is not correct: if fortress.Loc.Lat != 1 { 16:08:10.727 WARN: This function name is not correct: t.Errorf("Expected fortress.Loc.Lat to be 1, got %v\n", fortress.Loc.Lat) 16:08:10.727 WARN: This function name is not correct: } 16:08:10.727 WARN: This function name is not correct: if fortress.Loc.Lon != 2 { 16:08:10.728 WARN: This function name is not correct: t.Errorf("Expected fortress.Loc.Lon to be 2, got %v\n", fortress.Loc.Lon) 16:08:10.728 WARN: This function name is not correct: } 16:08:10.728 WARN: This function name is not correct: } 16:08:10.728 WARN: This function name is not correct: 16:08:10.728 INFO: Create the key db_test.go#TestFortressRetrievalWithID 16:08:10.728 WARN: This function name is not correct: db := Db{dbAccess} 16:08:10.728 WARN: This function name is not correct: if err := db.Wipe(); err != nil { 16:08:10.728 WARN: This function name is not correct: t.Fatal(err) 16:08:10.729 WARN: This function name is not correct: } 16:08:10.729 WARN: This function name is not correct: fortress, fortressErr := db.CreateFortress("Elliot", 1, 2) 16:08:10.729 WARN: This function name is not correct: if fortressErr != nil { 16:08:10.729 WARN: This function name is not correct: t.Fatalf("Error while calling db.CreateFortress: %v\n", fortressErr) 16:08:10.729 WARN: This function name is not correct: } 16:08:10.733 WARN: This function name is not correct: id := fortress.ID 16:08:10.735 WARN: This function name is not correct: fortress, fortressErr = db.GetFortressWithID(id.Hex()) 16:08:10.738 WARN: This function name is not correct: if fortressErr != nil { 16:08:10.738 WARN: This function name is not correct: t.Fatalf("Error while calling db.GetFortressWithID: %v\n", fortressErr) 16:08:10.738 WARN: This function name is not correct: } 16:08:10.738 WARN: This function name is not correct: if fortress.ID != id { 16:08:10.738 WARN: This function name is not correct: t.Errorf("Expected fortress.ID to be %v, got %v\n", id, fortress.ID) 16:08:10.738 WARN: This function name is not correct: } 16:08:10.738 WARN: This function name is not correct: if fortress.Name != "Elliot" { 16:08:10.738 WARN: This function name is not correct: t.Errorf("Expected fortress.Name to be Elliot, got %v\n", fortress.Name) 16:08:10.739 WARN: This function name is not correct: } 16:08:10.739 WARN: This function name is not correct: if fortress.Loc.Lat != 1 { 16:08:10.739 WARN: This function name is not correct: t.Errorf("Expected fortress.Loc.Lat to be 1, got %v\n", fortress.Loc.Lat) 16:08:10.739 WARN: This function name is not correct: } 16:08:10.739 WARN: This function name is not correct: if fortress.Loc.Lon != 2 { 16:08:10.739 WARN: This function name is not correct: t.Errorf("Expected fortress.Loc.Lon to be 2, got %v\n", fortress.Loc.Lon) 16:08:10.739 WARN: This function name is not correct: } 16:08:10.739 WARN: This function name is not correct: } 16:08:10.739 WARN: This function name is not correct: 16:08:10.739 INFO: Create the key db_test.go#TestFortressRetrievalWithLocation 16:08:10.741 WARN: This function name is not correct: db := Db{dbAccess} 16:08:10.741 WARN: This function name is not correct: if err := db.Wipe(); err != nil { 16:08:10.741 WARN: This function name is not correct: t.Fatal(err) 16:08:10.741 WARN: This function name is not correct: } 16:08:10.741 WARN: This function name is not correct: fortress, fortressErr := db.CreateFortress("Paprika", 42, 42) 16:08:10.741 WARN: This function name is not correct: if fortressErr != nil { 16:08:10.741 WARN: This function name is not correct: t.Fatalf("Error while calling db.CreateFortress: %v\n", fortressErr) 16:08:10.742 WARN: This function name is not correct: } 16:08:10.742 WARN: This function name is not correct: id := fortress.ID 16:08:10.742 WARN: This function name is not correct: fortresses, fortressErr := db.GetFortressesWithLocation(Location{41.9999999, 41.9999999}, 10) 16:08:10.742 WARN: This function name is not correct: if fortressErr != nil { 16:08:10.742 WARN: This function name is not correct: t.Fatalf("Error while calling db.GetFortressWithLocation: %v\n", fortressErr) 16:08:10.742 WARN: This function name is not correct: } 16:08:10.742 WARN: This function name is not correct: if len(fortresses) != 1 { 16:08:10.742 WARN: This function name is not correct: t.Fatalf("Expected to find one fortress, got %v\n", len(fortresses)) 16:08:10.743 WARN: This function name is not correct: } 16:08:10.743 WARN: This function name is not correct: fortress = fortresses[0] 16:08:10.743 WARN: This function name is not correct: if fortress.ID != id { 16:08:10.743 WARN: This function name is not correct: t.Errorf("Expected fortress.ID to be %v, got %v\n", id, fortress.ID) 16:08:10.743 WARN: This function name is not correct: } 16:08:10.743 WARN: This function name is not correct: } 16:08:10.743 WARN: This function name is not correct: 16:08:10.743 INFO: Create the key db_test.go#TestFortressUpdate 16:08:10.743 WARN: This function name is not correct: db := Db{dbAccess} 16:08:10.744 WARN: This function name is not correct: if err := db.Wipe(); err != nil { 16:08:10.744 WARN: This function name is not correct: t.Fatal(err) 16:08:10.744 WARN: This function name is not correct: } 16:08:10.744 WARN: This function name is not correct: fortress, fortressErr := db.CreateFortress("Parika", 1, 2) 16:08:10.744 WARN: This function name is not correct: if fortressErr != nil { 16:08:10.744 WARN: This function name is not correct: t.Fatalf("Error while calling db.CreateFortress: %v\n", fortressErr) 16:08:10.744 WARN: This function name is not correct: } 16:08:10.744 WARN: This function name is not correct: id := fortress.ID 16:08:10.744 WARN: This function name is not correct: fortress.Name = "Paprika" 16:08:10.745 WARN: This function name is not correct: fortress.Loc.Lat = 42 16:08:10.745 WARN: This function name is not correct: fortress.Loc.Lon = 24 16:08:10.745 WARN: This function name is not correct: fortressErr = db.UpdateFortress(fortress) 16:08:10.745 WARN: This function name is not correct: if fortressErr != nil { 16:08:10.745 WARN: This function name is not correct: t.Fatalf("Error while calling db.UpdateFortress: %v\n", fortressErr) 16:08:10.745 WARN: This function name is not correct: } 16:08:10.745 WARN: This function name is not correct: fortress, fortressErr = db.GetFortressWithID(id.Hex()) 16:08:10.745 WARN: This function name is not correct: if fortressErr != nil { 16:08:10.746 WARN: This function name is not correct: t.Fatalf("Error while calling db.GetFortressWithID: %v\n", fortressErr) 16:08:10.746 WARN: This function name is not correct: } 16:08:10.746 WARN: This function name is not correct: if fortress.ID != id { 16:08:10.746 WARN: This function name is not correct: t.Errorf("Expected fortress.ID to be %v, got %v\n", id, fortress.ID) 16:08:10.746 WARN: This function name is not correct: } 16:08:10.746 WARN: This function name is not correct: if fortress.Name != "Paprika" { 16:08:10.746 WARN: This function name is not correct: t.Errorf("Expected fortress.Name to be Paprika, got %v\n", fortress.Name) 16:08:10.746 WARN: This function name is not correct: } 16:08:10.746 WARN: This function name is not correct: if fortress.Loc.Lat != 42 { 16:08:10.746 WARN: This function name is not correct: t.Errorf("Expected fortress.Loc.Lat to be 42, got %v\n", fortress.Loc.Lat) 16:08:10.747 WARN: This function name is not correct: } 16:08:10.747 WARN: This function name is not correct: if fortress.Loc.Lon != 24 { 16:08:10.747 WARN: This function name is not correct: t.Errorf("Expected fortress.Loc.Lon to be 24, got %v\n", fortress.Loc.Lon) 16:08:10.747 WARN: This function name is not correct: } 16:08:10.747 WARN: This function name is not correct: } 16:08:10.747 WARN: This function name is not correct: 16:08:10.747 INFO: Create the key db_test.go#TestFortressDeletion 16:08:10.747 WARN: This function name is not correct: db := Db{dbAccess} 16:08:10.747 WARN: This function name is not correct: if err := db.Wipe(); err != nil { 16:08:10.748 WARN: This function name is not correct: t.Fatal(err) 16:08:10.748 WARN: This function name is not correct: } 16:08:10.748 WARN: This function name is not correct: fortress, fortressErr := db.CreateFortress("Paprika", 1, 2) 16:08:10.748 WARN: This function name is not correct: if fortressErr != nil { 16:08:10.748 WARN: This function name is not correct: t.Fatalf("Error while calling db.CreateFortress: %v\n", fortressErr) 16:08:10.748 WARN: This function name is not correct: } 16:08:10.748 WARN: This function name is not correct: id := fortress.ID 16:08:10.748 WARN: This function name is not correct: err := db.DeleteFortress(fortress) 16:08:10.748 WARN: This function name is not correct: if err != nil { 16:08:10.748 WARN: This function name is not correct: t.Fatalf("Error while calling db.DeleteFortress: %v\n", err) 16:08:10.749 WARN: This function name is not correct: } 16:08:10.749 WARN: This function name is not correct: fortress, fortressErr = db.GetFortressWithID(id.Hex()) 16:08:10.749 WARN: This function name is not correct: if fortressErr != ErrNotFound { 16:08:10.749 WARN: This function name is not correct: t.Errorf("GetFortressBy ID did not return ErrNotFound: %v\n", fortressErr) 16:08:10.749 WARN: This function name is not correct: } 16:08:10.749 WARN: This function name is not correct: } 16:08:10.749 WARN: This function name is not correct: 16:08:10.749 INFO: Create the key db_test.go#TestUserCreation 16:08:10.749 WARN: This function name is not correct: db := Db{dbAccess} 16:08:10.749 WARN: This function name is not correct: if err := db.Wipe(); err != nil { 16:08:10.749 WARN: This function name is not correct: t.Fatal(err) 16:08:10.749 WARN: This function name is not correct: } 16:08:10.749 WARN: This function name is not correct: user, userErr := db.CreateUser("Rainbow-Dash", "dashie@cloudsdale.eq", "wonderbolts123") 16:08:10.749 WARN: This function name is not correct: if userErr != nil { 16:08:10.749 WARN: This function name is not correct: t.Fatalf("Error while calling CreateUser: %v\n", userErr) 16:08:10.749 WARN: This function name is not correct: } 16:08:10.749 WARN: This function name is not correct: if user.ID == bson.ObjectId("") { 16:08:10.749 WARN: This function name is not correct: t.Error("Expected user.ID to not be empty") 16:08:10.749 WARN: This function name is not correct: } 16:08:10.749 WARN: This function name is not correct: if user.Username != "Rainbow-Dash" { 16:08:10.749 WARN: This function name is not correct: t.Errorf("Expected user.Userame to be Rainbow-Dash, got %v\n", user.Username) 16:08:10.749 WARN: This function name is not correct: } 16:08:10.750 WARN: This function name is not correct: if user.Email != "dashie@cloudsdale.eq" { 16:08:10.750 WARN: This function name is not correct: t.Errorf("Expected user.Email to be dashie@cloudsdale.eq, got %v\n", user.Email) 16:08:10.750 WARN: This function name is not correct: } 16:08:10.750 WARN: This function name is not correct: } 16:08:10.750 WARN: This function name is not correct: 16:08:10.750 INFO: Create the key db_test.go#TestUserGetWithCredentials 16:08:10.750 WARN: This function name is not correct: db := Db{dbAccess} 16:08:10.750 WARN: This function name is not correct: if err := db.Wipe(); err != nil { 16:08:10.750 WARN: This function name is not correct: t.Fatal(err) 16:08:10.750 WARN: This function name is not correct: } 16:08:10.750 WARN: This function name is not correct: user, userErr := db.CreateUser("Rainbow-Dash", "dashie@cloudsdale.eq", "wonderbolts123") 16:08:10.750 WARN: This function name is not correct: if userErr != nil { 16:08:10.750 WARN: This function name is not correct: t.Fatalf("Error while calling CreateUser: %v\n", userErr) 16:08:10.750 WARN: This function name is not correct: } 16:08:10.750 WARN: This function name is not correct: id := user.ID 16:08:10.750 WARN: This function name is not correct: password := user.Password 16:08:10.750 WARN: This function name is not correct: user, userErr = db.GetUserWithCredentials("dashie@cloudsdale.eq", "wonderbolts123") 16:08:10.751 WARN: This function name is not correct: if userErr != nil { 16:08:10.751 WARN: This function name is not correct: t.Fatalf("Error while calling GetUserWithCredentials: %v\n", userErr) 16:08:10.751 WARN: This function name is not correct: } 16:08:10.751 WARN: This function name is not correct: if id != user.ID { 16:08:10.751 WARN: This function name is not correct: t.Errorf("Expected user.ID to be %v, got %v\n", id, user.ID) 16:08:10.751 WARN: This function name is not correct: } 16:08:10.751 WARN: This function name is not correct: if user.Username != "Rainbow-Dash" { 16:08:10.751 WARN: This function name is not correct: t.Errorf("Expected user.Username to be Rainbow-Dash, got %v\n", user.Username) 16:08:10.751 WARN: This function name is not correct: } 16:08:10.751 WARN: This function name is not correct: if user.Email != "dashie@cloudsdale.eq" { 16:08:10.751 WARN: This function name is not correct: t.Errorf("Expected user.Email to be dashie@cloudsdale.eq, got %v\n", user.Email) 16:08:10.751 WARN: This function name is not correct: } 16:08:10.751 WARN: This function name is not correct: if string(password) != string(user.Password) { 16:08:10.751 WARN: This function name is not correct: t.Errorf("Expected user.Password to be %v, got %v\n", string(password), string(user.Password)) 16:08:10.751 WARN: This function name is not correct: } 16:08:10.751 WARN: This function name is not correct: } 16:08:10.751 WARN: This function name is not correct: 16:08:10.752 INFO: Create the key db_test.go#TestUserGetWithEmail 16:08:10.752 WARN: This function name is not correct: db := Db{dbAccess} 16:08:10.752 WARN: This function name is not correct: if err := db.Wipe(); err != nil { 16:08:10.752 WARN: This function name is not correct: t.Fatal(err) 16:08:10.752 WARN: This function name is not correct: } 16:08:10.752 WARN: This function name is not correct: user, userErr := db.CreateUser("Rainbow-Dash", "dashie@cloudsdale.eq", "wonderbolts123") 16:08:10.752 WARN: This function name is not correct: if userErr != nil { 16:08:10.752 WARN: This function name is not correct: t.Fatalf("Error while calling CreateUser: %v\n", userErr) 16:08:10.752 WARN: This function name is not correct: } 16:08:10.752 WARN: This function name is not correct: id := user.ID 16:08:10.752 WARN: This function name is not correct: password := user.Password 16:08:10.752 WARN: This function name is not correct: user, userErr = db.GetUserWithEmail("dashie@cloudsdale.eq") 16:08:10.752 WARN: This function name is not correct: if userErr != nil { 16:08:10.752 WARN: This function name is not correct: t.Fatalf("Error while calling GetUserWithEmail: %v\n", userErr) 16:08:10.752 WARN: This function name is not correct: } 16:08:10.752 WARN: This function name is not correct: if id != user.ID { 16:08:10.752 WARN: This function name is not correct: t.Errorf("Expected user.ID to be %v, got %v\n", id, user.ID) 16:08:10.752 WARN: This function name is not correct: } 16:08:10.752 WARN: This function name is not correct: if user.Username != "Rainbow-Dash" { 16:08:10.752 WARN: This function name is not correct: t.Errorf("Expected user.Username to be Rainbow-Dash, got %v\n", user.Username) 16:08:10.752 WARN: This function name is not correct: } 16:08:10.753 WARN: This function name is not correct: if user.Email != "dashie@cloudsdale.eq" { 16:08:10.753 WARN: This function name is not correct: t.Errorf("Expected user.Email to be dashie@cloudsdale.eq, got %v\n", user.Email) 16:08:10.753 WARN: This function name is not correct: } 16:08:10.753 WARN: This function name is not correct: if string(password) != string(user.Password) { 16:08:10.753 WARN: This function name is not correct: t.Errorf("Expected user.Password to be %v, got %v\n", string(password), string(user.Password)) 16:08:10.753 WARN: This function name is not correct: } 16:08:10.753 WARN: This function name is not correct: } 16:08:10.753 WARN: This function name is not correct: 16:08:10.753 INFO: Create the key db_test.go#TestUserGetWithName 16:08:10.753 WARN: This function name is not correct: db := Db{dbAccess} 16:08:10.753 WARN: This function name is not correct: if err := db.Wipe(); err != nil { 16:08:10.753 WARN: This function name is not correct: t.Fatal(err) 16:08:10.753 WARN: This function name is not correct: } 16:08:10.753 WARN: This function name is not correct: user, userErr := db.CreateUser("Rainbow-Dash", "dashie@cloudsdale.eq", "wonderbolts123") 16:08:10.753 WARN: This function name is not correct: if userErr != nil { 16:08:10.753 WARN: This function name is not correct: t.Fatalf("Error while calling CreateUser: %v\n", userErr) 16:08:10.753 WARN: This function name is not correct: } 16:08:10.753 WARN: This function name is not correct: id := user.ID 16:08:10.753 WARN: This function name is not correct: password := user.Password 16:08:10.753 WARN: This function name is not correct: user, userErr = db.GetUserWithName("Rainbow-Dash") 16:08:10.753 WARN: This function name is not correct: if userErr != nil { 16:08:10.753 WARN: This function name is not correct: t.Fatalf("Error while calling GetUserWithName: %v\n", userErr) 16:08:10.753 WARN: This function name is not correct: } 16:08:10.753 WARN: This function name is not correct: if id != user.ID { 16:08:10.753 WARN: This function name is not correct: t.Errorf("Expected user.ID to be %v, got %v\n", id, user.ID) 16:08:10.753 WARN: This function name is not correct: } 16:08:10.753 WARN: This function name is not correct: if user.Username != "Rainbow-Dash" { 16:08:10.754 WARN: This function name is not correct: t.Errorf("Expected user.Username to be Rainbow-Dash, got %v\n", user.Username) 16:08:10.754 WARN: This function name is not correct: } 16:08:10.754 WARN: This function name is not correct: if user.Email != "dashie@cloudsdale.eq" { 16:08:10.754 WARN: This function name is not correct: t.Errorf("Expected user.Email to be dashie@cloudsdale.eq, got %v\n", user.Email) 16:08:10.754 WARN: This function name is not correct: } 16:08:10.754 WARN: This function name is not correct: if string(password) != string(user.Password) { 16:08:10.754 WARN: This function name is not correct: t.Errorf("Expected user.Password to be %v, got %v\n", string(password), string(user.Password)) 16:08:10.754 WARN: This function name is not correct: } 16:08:10.754 WARN: This function name is not correct: } 16:08:10.754 WARN: This function name is not correct: 16:08:10.754 INFO: Create the key db_test.go#TestUserGetWithToken 16:08:10.754 WARN: This function name is not correct: db := Db{dbAccess} 16:08:10.754 WARN: This function name is not correct: if err := db.Wipe(); err != nil { 16:08:10.754 WARN: This function name is not correct: t.Fatal(err) 16:08:10.754 WARN: This function name is not correct: } 16:08:10.754 WARN: This function name is not correct: user, userErr := db.CreateUser("Rainbow-Dash", "dashie@cloudsdale.eq", "wonderbolts123") 16:08:10.754 WARN: This function name is not correct: if userErr != nil { 16:08:10.755 WARN: This function name is not correct: t.Fatalf("Error while calling CreateUser: %v\n", userErr) 16:08:10.755 WARN: This function name is not correct: } 16:08:10.755 WARN: This function name is not correct: id := user.ID 16:08:10.755 WARN: This function name is not correct: password := user.Password 16:08:10.755 WARN: This function name is not correct: token, tokenError := db.CreateToken(user) 16:08:10.755 WARN: This function name is not correct: if tokenError != nil { 16:08:10.755 WARN: This function name is not correct: t.Fatalf("Error while calling CreateToken: %v\n", tokenError) 16:08:10.755 WARN: This function name is not correct: } 16:08:10.755 WARN: This function name is not correct: user, userErr = db.GetUserWithToken(token) 16:08:10.755 WARN: This function name is not correct: if userErr != nil { 16:08:10.755 WARN: This function name is not correct: t.Fatalf("Error while calling GetUserWithName: %v\n", userErr) 16:08:10.755 WARN: This function name is not correct: } 16:08:10.755 WARN: This function name is not correct: if id != user.ID { 16:08:10.755 WARN: This function name is not correct: t.Errorf("Expected user.ID to be %v, got %v\n", id, user.ID) 16:08:10.755 WARN: This function name is not correct: } 16:08:10.755 WARN: This function name is not correct: if user.Username != "Rainbow-Dash" { 16:08:10.755 WARN: This function name is not correct: t.Errorf("Expected user.Username to be Rainbow-Dash, got %v\n", user.Username) 16:08:10.755 WARN: This function name is not correct: } 16:08:10.755 WARN: This function name is not correct: if user.Email != "dashie@cloudsdale.eq" { 16:08:10.755 WARN: This function name is not correct: t.Errorf("Expected user.Email to be dashie@cloudsdale.eq, got %v\n", user.Email) 16:08:10.755 WARN: This function name is not correct: } 16:08:10.755 WARN: This function name is not correct: if string(password) != string(user.Password) { 16:08:10.755 WARN: This function name is not correct: t.Errorf("Expected user.Password to be %v, got %v\n", string(password), string(user.Password)) 16:08:10.755 WARN: This function name is not correct: } 16:08:10.756 WARN: This function name is not correct: } 16:08:10.756 WARN: This function name is not correct: 16:08:10.756 INFO: Create the key db_test.go#TestUserGetByID 16:08:10.756 WARN: This function name is not correct: db := Db{dbAccess} 16:08:10.756 WARN: This function name is not correct: if err := db.Wipe(); err != nil { 16:08:10.756 WARN: This function name is not correct: t.Fatal(err) 16:08:10.756 WARN: This function name is not correct: } 16:08:10.756 WARN: This function name is not correct: user, userErr := db.CreateUser("Rainbow-Dash", "dashie@cloudsdale.eq", "wonderbolts123") 16:08:10.756 WARN: This function name is not correct: if userErr != nil { 16:08:10.756 WARN: This function name is not correct: t.Fatalf("Error while calling CreateUser: %v\n", userErr) 16:08:10.756 WARN: This function name is not correct: } 16:08:10.756 WARN: This function name is not correct: id := user.ID 16:08:10.756 WARN: This function name is not correct: password := user.Password 16:08:10.756 WARN: This function name is not correct: user, userErr = db.getUserWithID(id) 16:08:10.756 WARN: This function name is not correct: if userErr != nil { 16:08:10.756 WARN: This function name is not correct: t.Fatalf("Error while calling getUserWithID: %v\n", userErr) 16:08:10.756 WARN: This function name is not correct: } 16:08:10.756 WARN: This function name is not correct: if id != user.ID { 16:08:10.756 WARN: This function name is not correct: t.Errorf("Expected user.ID to be %v, got %v\n", id, user.ID) 16:08:10.756 WARN: This function name is not correct: } 16:08:10.756 WARN: This function name is not correct: if user.Username != "Rainbow-Dash" { 16:08:10.756 WARN: This function name is not correct: t.Errorf("Expected user.Username to be Rainbow-Dash, got %v\n", user.Username) 16:08:10.756 WARN: This function name is not correct: } 16:08:10.756 WARN: This function name is not correct: if user.Email != "dashie@cloudsdale.eq" { 16:08:10.756 WARN: This function name is not correct: t.Errorf("Expected user.Email to be dashie@cloudsdale.eq, got %v\n", user.Email) 16:08:10.756 WARN: This function name is not correct: } 16:08:10.756 WARN: This function name is not correct: if string(password) != string(user.Password) { 16:08:10.756 WARN: This function name is not correct: t.Errorf("Expected user.Password to be %v, got %v\n", string(password), string(user.Password)) 16:08:10.757 WARN: This function name is not correct: } 16:08:10.757 WARN: This function name is not correct: } 16:08:10.757 WARN: This function name is not correct: 16:08:10.757 INFO: Create the key db_test.go#TestUserGetWithFortress 16:08:10.757 WARN: This function name is not correct: db := Db{dbAccess} 16:08:10.757 WARN: This function name is not correct: if err := db.Wipe(); err != nil { 16:08:10.757 WARN: This function name is not correct: t.Fatal(err) 16:08:10.757 WARN: This function name is not correct: } 16:08:10.757 WARN: This function name is not correct: user, userErr := db.CreateUser("Rainbow-Dash", "dashie@cloudsdale.eq", "wonderbolts123") 16:08:10.757 WARN: This function name is not correct: if userErr != nil { 16:08:10.757 WARN: This function name is not correct: t.Fatalf("Error while calling CreateUser: %v\n", userErr) 16:08:10.757 WARN: This function name is not correct: } 16:08:10.757 WARN: This function name is not correct: id := user.ID 16:08:10.757 WARN: This function name is not correct: password := user.Password 16:08:10.757 WARN: This function name is not correct: fortress, fortressError := db.CreateFortress("Rainbow-Falls", 42, 42) 16:08:10.757 WARN: This function name is not correct: if fortressError != nil { 16:08:10.757 WARN: This function name is not correct: t.Fatalf("Error while calling CreateFortress: %v\n", fortressError) 16:08:10.757 WARN: This function name is not correct: } 16:08:10.757 WARN: This function name is not correct: user.Fortress = fortress.ID 16:08:10.757 WARN: This function name is not correct: userErr = db.UpdateUser(user) 16:08:10.757 WARN: This function name is not correct: if userErr != nil { 16:08:10.757 WARN: This function name is not correct: t.Fatalf("Error while calling UpdateUser: %v\n", userErr) 16:08:10.757 WARN: This function name is not correct: } 16:08:10.757 WARN: This function name is not correct: users, userErr := db.GetUsersWithFortress(fortress.ID.Hex()) 16:08:10.758 WARN: This function name is not correct: if userErr != nil { 16:08:10.758 WARN: This function name is not correct: t.Fatalf("Error while calling GetUsersFromFortress: %v\n", userErr) 16:08:10.758 WARN: This function name is not correct: } 16:08:10.758 WARN: This function name is not correct: if len(users) != 1 { 16:08:10.758 WARN: This function name is not correct: t.Fatalf("Expected to find one user, got %v\n", len(users)) 16:08:10.758 WARN: This function name is not correct: } 16:08:10.758 WARN: This function name is not correct: user = users[0] 16:08:10.758 WARN: This function name is not correct: if id != user.ID { 16:08:10.758 WARN: This function name is not correct: t.Errorf("Expected user.ID to be %v, got %v\n", id, user.ID) 16:08:10.758 WARN: This function name is not correct: } 16:08:10.758 WARN: This function name is not correct: if user.Username != "Rainbow-Dash" { 16:08:10.758 WARN: This function name is not correct: t.Errorf("Expected user.Username to be Rainbow-Dash, got %v\n", user.Username) 16:08:10.758 WARN: This function name is not correct: } 16:08:10.758 WARN: This function name is not correct: if user.Email != "dashie@cloudsdale.eq" { 16:08:10.758 WARN: This function name is not correct: t.Errorf("Expected user.Email to be dashie@cloudsdale.eq, got %v\n", user.Email) 16:08:10.758 WARN: This function name is not correct: } 16:08:10.758 WARN: This function name is not correct: if string(password) != string(user.Password) { 16:08:10.758 WARN: This function name is not correct: t.Errorf("Expected user.Password to be %v, got %v\n", string(password), string(user.Password)) 16:08:10.758 WARN: This function name is not correct: } 16:08:10.759 WARN: This function name is not correct: } 16:08:10.759 WARN: This function name is not correct: 16:08:10.759 INFO: Create the key db_test.go#TestTokenCreate 16:08:10.759 WARN: This function name is not correct: db := Db{dbAccess} 16:08:10.759 WARN: This function name is not correct: user, userErr := db.CreateUser("Rainbow-Dash", "dashie@cloudsdale.eq", "wonderbolts123") 16:08:10.759 WARN: This function name is not correct: if userErr != nil { 16:08:10.759 WARN: This function name is not correct: t.Fatalf("Error while calling CreateUser: %v\n", userErr) 16:08:10.759 WARN: This function name is not correct: } 16:08:10.759 WARN: This function name is not correct: token, tokenError := db.CreateToken(user) 16:08:10.759 WARN: This function name is not correct: if tokenError != nil { 16:08:10.759 WARN: This function name is not correct: t.Fatalf("Error while calling CreateToken: %v\n", tokenError) 16:08:10.759 WARN: This function name is not correct: } 16:08:10.759 WARN: This function name is not correct: if token.UserID != user.ID { 16:08:10.759 WARN: This function name is not correct: t.Errorf("Expected token.UserID to be %v, got %v\n", user.ID, token.UserID) 16:08:10.759 WARN: This function name is not correct: } 16:08:10.759 WARN: This function name is not correct: } 16:08:10.759 WARN: This function name is not correct: 16:08:10.759 INFO: Create the key db_test.go#TestTokenGetWithValue 16:08:10.759 WARN: This function name is not correct: db := Db{dbAccess} 16:08:10.759 WARN: This function name is not correct: if err := db.Wipe(); err != nil { 16:08:10.759 WARN: This function name is not correct: t.Fatal(err) 16:08:10.759 WARN: This function name is not correct: } 16:08:10.759 WARN: This function name is not correct: user, userErr := db.CreateUser("Rainbow-Dash", "dashie@cloudsdale.eq", "wonderbolts123") 16:08:10.759 WARN: This function name is not correct: if userErr != nil { 16:08:10.759 WARN: This function name is not correct: t.Fatalf("Error while calling CreateUser: %v\n", userErr) 16:08:10.760 WARN: This function name is not correct: } 16:08:10.760 WARN: This function name is not correct: token, tokenError := db.CreateToken(user) 16:08:10.760 WARN: This function name is not correct: if tokenError != nil { 16:08:10.760 WARN: This function name is not correct: t.Fatalf("Error while calling CreateToken: %v\n", tokenError) 16:08:10.760 WARN: This function name is not correct: } 16:08:10.760 WARN: This function name is not correct: tokenValue := token.Value 16:08:10.760 WARN: This function name is not correct: id := token.UserID 16:08:10.760 WARN: This function name is not correct: token, tokenError = db.GetTokenWithValue(tokenValue) 16:08:10.760 WARN: This function name is not correct: if tokenError != nil { 16:08:10.760 WARN: This function name is not correct: t.Fatalf("Error while calling GetTokenWithValue: %v\n", tokenError) 16:08:10.760 WARN: This function name is not correct: } 16:08:10.760 WARN: This function name is not correct: if token.Value != tokenValue { 16:08:10.760 WARN: This function name is not correct: t.Errorf("Expected token.Value to be %v, got %v\n", tokenValue, token.Value) 16:08:10.760 WARN: This function name is not correct: } 16:08:10.760 WARN: This function name is not correct: if token.UserID != id { 16:08:10.760 WARN: This function name is not correct: t.Errorf("Expected token.UserID to be %v, got %v\n", user.ID, token.UserID) 16:08:10.760 WARN: This function name is not correct: } 16:08:10.760 WARN: This function name is not correct: } 16:08:10.760 WARN: This function name is not correct: 16:08:10.760 INFO: Create the key db_test.go#TestTokenGetWithUser 16:08:10.760 WARN: This function name is not correct: db := Db{dbAccess} 16:08:10.760 WARN: This function name is not correct: if err := db.Wipe(); err != nil { 16:08:10.760 WARN: This function name is not correct: t.Fatal(err) 16:08:10.760 WARN: This function name is not correct: } 16:08:10.760 WARN: This function name is not correct: user, userErr := db.CreateUser("Rainbow-Dash", "dashie@cloudsdale.eq", "wonderbolts123") 16:08:10.760 WARN: This function name is not correct: if userErr != nil { 16:08:10.760 WARN: This function name is not correct: t.Fatalf("Error while calling CreateUser: %v\n", userErr) 16:08:10.760 WARN: This function name is not correct: } 16:08:10.761 WARN: This function name is not correct: token, tokenError := db.CreateToken(user) 16:08:10.761 WARN: This function name is not correct: if tokenError != nil { 16:08:10.761 WARN: This function name is not correct: t.Fatalf("Error while calling CreateToken: %v\n", tokenError) 16:08:10.761 WARN: This function name is not correct: } 16:08:10.761 WARN: This function name is not correct: tokenValue := token.Value 16:08:10.761 WARN: This function name is not correct: id := token.UserID 16:08:10.761 WARN: This function name is not correct: tokens, tokenError := db.GetTokensWithUser(user) 16:08:10.761 WARN: This function name is not correct: if tokenError != nil { 16:08:10.761 WARN: This function name is not correct: t.Fatalf("Error while calling CreateToken: %v\n", tokenError) 16:08:10.761 WARN: This function name is not correct: } 16:08:10.761 WARN: This function name is not correct: if len(tokens) != 1 { 16:08:10.761 WARN: This function name is not correct: t.Fatalf("Expected to find one token, got %v\n", len(tokens)) 16:08:10.761 WARN: This function name is not correct: } 16:08:10.761 WARN: This function name is not correct: token = tokens[0] 16:08:10.761 WARN: This function name is not correct: if token.Value != tokenValue { 16:08:10.761 WARN: This function name is not correct: t.Errorf("Expected token.Value to be %v, got %v\n", tokenValue, token.Value) 16:08:10.761 WARN: This function name is not correct: } 16:08:10.761 WARN: This function name is not correct: if token.UserID != id { 16:08:10.761 WARN: This function name is not correct: t.Errorf("Expected token.UserID to be %v, got %v\n", id, token.UserID) 16:08:10.761 WARN: This function name is not correct: } 16:08:10.761 WARN: This function name is not correct: } 16:08:10.761 WARN: This function name is not correct: 16:08:10.761 INFO: Create the key db_test.go#TestTokenDelete 16:08:10.761 WARN: This function name is not correct: db := Db{dbAccess} 16:08:10.761 WARN: This function name is not correct: if err := db.Wipe(); err != nil { 16:08:10.761 WARN: This function name is not correct: t.Fatal(err) 16:08:10.761 WARN: This function name is not correct: } 16:08:10.761 WARN: This function name is not correct: user, userErr := db.CreateUser("Rainbow-Dash", "dashie@cloudsdale.eq", "wonderbolts123") 16:08:10.762 WARN: This function name is not correct: if userErr != nil { 16:08:10.762 WARN: This function name is not correct: t.Fatalf("Error while calling CreateUser: %v\n", userErr) 16:08:10.762 WARN: This function name is not correct: } 16:08:10.762 WARN: This function name is not correct: token, tokenError := db.CreateToken(user) 16:08:10.762 WARN: This function name is not correct: if tokenError != nil { 16:08:10.762 WARN: This function name is not correct: t.Fatalf("Error while calling CreateToken: %v\n", tokenError) 16:08:10.762 WARN: This function name is not correct: } 16:08:10.762 WARN: This function name is not correct: tokenValue := token.Value 16:08:10.762 WARN: This function name is not correct: tokenError = db.DeleteToken(token) 16:08:10.762 WARN: This function name is not correct: if tokenError != nil { 16:08:10.762 WARN: This function name is not correct: t.Fatalf("Error while calling DeleteToken: %v\n", tokenError) 16:08:10.762 WARN: This function name is not correct: } 16:08:10.762 WARN: This function name is not correct: token, tokenError = db.GetTokenWithValue(tokenValue) 16:08:10.762 WARN: This function name is not correct: if tokenError != ErrNotFound { 16:08:10.762 WARN: This function name is not correct: t.Errorf("GetTokenWithValue did not return ErrNotFound: %v\n", tokenError) 16:08:10.762 WARN: This function name is not correct: } 16:08:10.762 WARN: This function name is not correct: } 16:08:10.762 WARN: This function name is not correct: 16:08:10.762 INFO: Create the key db_test.go#TestScavengingCreate 16:08:10.762 WARN: This function name is not correct: db := Db{dbAccess} 16:08:10.762 WARN: This function name is not correct: if err := db.Wipe(); err != nil { 16:08:10.762 WARN: This function name is not correct: t.Fatal(err) 16:08:10.762 WARN: This function name is not correct: } 16:08:10.762 WARN: This function name is not correct: user, userErr := db.CreateUser("Rainbow-Dash", "dashie@cloudsdale.eq", "wonderbolts123") 16:08:10.762 WARN: This function name is not correct: if userErr != nil { 16:08:10.762 WARN: This function name is not correct: t.Fatalf("Error while calling CreateUser: %v\n", userErr) 16:08:10.762 WARN: This function name is not correct: } 16:08:10.762 WARN: This function name is not correct: scav, scavError := db.CreateScavenging(user) 16:08:10.762 WARN: This function name is not correct: if scavError != nil { 16:08:10.762 WARN: This function name is not correct: t.Fatalf("Error while calling CreateScavenging: %v\n", scavError) 16:08:10.762 WARN: This function name is not correct: } 16:08:10.763 WARN: This function name is not correct: if scav.UserID != user.ID { 16:08:10.763 WARN: This function name is not correct: t.Errorf("Expected scav.UserID to be %v, got %v\n", user.ID, scav.ID) 16:08:10.763 WARN: This function name is not correct: } 16:08:10.763 WARN: This function name is not correct: } 16:08:10.763 WARN: This function name is not correct: 16:08:10.763 INFO: Create the key db_test.go#TestScavengingGetWithUser 16:08:10.763 WARN: This function name is not correct: db := Db{dbAccess} 16:08:10.763 WARN: This function name is not correct: if err := db.Wipe(); err != nil { 16:08:10.763 WARN: This function name is not correct: t.Fatal(err) 16:08:10.763 WARN: This function name is not correct: } 16:08:10.763 WARN: This function name is not correct: user, userErr := db.CreateUser("Rainbow-Dash", "dashie@cloudsdale.eq", "wonderbolts123") 16:08:10.763 WARN: This function name is not correct: if userErr != nil { 16:08:10.763 WARN: This function name is not correct: t.Fatalf("Error while calling CreateUser: %v\n", userErr) 16:08:10.763 WARN: This function name is not correct: } 16:08:10.763 WARN: This function name is not correct: scav, scavError := db.CreateScavenging(user) 16:08:10.763 WARN: This function name is not correct: if scavError != nil { 16:08:10.763 WARN: This function name is not correct: t.Fatalf("Error while calling CreateScavenging: %v\n", scavError) 16:08:10.763 WARN: This function name is not correct: } 16:08:10.763 WARN: This function name is not correct: scavId := scav.ID 16:08:10.763 WARN: This function name is not correct: uId := scav.UserID 16:08:10.763 WARN: This function name is not correct: energy := scav.Energy 16:08:10.763 WARN: This function name is not correct: scav, scavError = db.GetScavengingWithUser(user) 16:08:10.763 WARN: This function name is not correct: if scavError != nil { 16:08:10.763 WARN: This function name is not correct: t.Fatalf("Error while calling GetScavengingWithUser: %v\n", scavError) 16:08:10.763 WARN: This function name is not correct: } 16:08:10.763 WARN: This function name is not correct: if scav.ID != scavId { 16:08:10.763 WARN: This function name is not correct: t.Errorf("Expected scav.ID to be %v, got %v\n", scavId, scav.ID) 16:08:10.763 WARN: This function name is not correct: } 16:08:10.763 WARN: This function name is not correct: if scav.UserID != uId { 16:08:10.763 WARN: This function name is not correct: t.Errorf("Expected scav.UserID to be %v, got %v\n", uId, scav.UserID) 16:08:10.764 WARN: This function name is not correct: } 16:08:10.764 WARN: This function name is not correct: if scav.Energy != energy { 16:08:10.764 WARN: This function name is not correct: t.Errorf("Expected scva.Energy to be %v, got %v\n", energy, scav.Energy) 16:08:10.764 WARN: This function name is not correct: } 16:08:10.764 WARN: This function name is not correct: } 16:08:10.764 WARN: This function name is not correct: 16:08:10.764 INFO: Create the key db_test.go#TestScavengingUpdate 16:08:10.764 WARN: This function name is not correct: db := Db{dbAccess} 16:08:10.764 WARN: This function name is not correct: if err := db.Wipe(); err != nil { 16:08:10.764 WARN: This function name is not correct: t.Fatal(err) 16:08:10.764 WARN: This function name is not correct: } 16:08:10.764 WARN: This function name is not correct: user, userErr := db.CreateUser("Rainbow-Dash", "dashie@cloudsdale.eq", "wonderbolts123") 16:08:10.764 WARN: This function name is not correct: if userErr != nil { 16:08:10.764 WARN: This function name is not correct: t.Fatalf("Error while calling CreateUser: %v\n", userErr) 16:08:10.764 WARN: This function name is not correct: } 16:08:10.764 WARN: This function name is not correct: scav, scavError := db.CreateScavenging(user) 16:08:10.764 WARN: This function name is not correct: if scavError != nil { 16:08:10.764 WARN: This function name is not correct: t.Fatalf("Error while calling CreateScavenging: %v\n", scavError) 16:08:10.765 WARN: This function name is not correct: } 16:08:10.765 WARN: This function name is not correct: scavId := scav.ID 16:08:10.765 WARN: This function name is not correct: uId := scav.UserID 16:08:10.765 WARN: This function name is not correct: scav.Energy = 42 16:08:10.765 WARN: This function name is not correct: scavError = db.UpdateScavenging(scav) 16:08:10.765 WARN: This function name is not correct: if scavError != nil { 16:08:10.766 WARN: This function name is not correct: t.Fatalf("Error while calling UpdateScavenging: %v\n", scavError) 16:08:10.767 WARN: This function name is not correct: } 16:08:10.769 WARN: This function name is not correct: if scavId != scav.ID { 16:08:10.769 WARN: This function name is not correct: t.Errorf("Expected scav.ID to be %v, got %v\n", scavId, scav.ID) 16:08:10.769 WARN: This function name is not correct: } 16:08:10.769 WARN: This function name is not correct: if scav.UserID != uId { 16:08:10.769 WARN: This function name is not correct: t.Errorf("Expected scav.UserID to be %v, got %v\n", uId, scav.UserID) 16:08:10.769 WARN: This function name is not correct: } 16:08:10.769 WARN: This function name is not correct: if scav.Energy != 42 { 16:08:10.769 WARN: This function name is not correct: t.Errorf("Exepected scav.Energy to be 42, got %v\n", scav.Energy) 16:08:10.769 WARN: This function name is not correct: } 16:08:10.769 WARN: This function name is not correct: } 16:08:10.769 WARN: This function name is not correct: 16:08:10.769 INFO: Create the key db_test.go#TestScavengingDelete 16:08:10.769 WARN: This function name is not correct: db := Db{dbAccess} 16:08:10.769 WARN: This function name is not correct: if err := db.Wipe(); err != nil { 16:08:10.769 WARN: This function name is not correct: t.Fatal(err) 16:08:10.769 WARN: This function name is not correct: } 16:08:10.769 WARN: This function name is not correct: user, userErr := db.CreateUser("Rainbow-Dash", "dashie@cloudsdale.eq", "wonderbolts123") 16:08:10.769 WARN: This function name is not correct: if userErr != nil { 16:08:10.769 WARN: This function name is not correct: t.Fatalf("Error while calling CreateUser: %v\n", userErr) 16:08:10.769 WARN: This function name is not correct: } 16:08:10.769 WARN: This function name is not correct: scav, scavError := db.CreateScavenging(user) 16:08:10.769 WARN: This function name is not correct: if scavError != nil { 16:08:10.769 WARN: This function name is not correct: t.Fatalf("Error while calling CreateScavenging: %v\n", scavError) 16:08:10.769 WARN: This function name is not correct: } 16:08:10.769 WARN: This function name is not correct: scavError = db.DeleteScavenging(scav) 16:08:10.770 WARN: This function name is not correct: if scavError != nil { 16:08:10.770 WARN: This function name is not correct: t.Fatalf("Error while calling DeleteScavenging: %v\n", scavError) 16:08:10.770 WARN: This function name is not correct: } 16:08:10.770 WARN: This function name is not correct: _, scavError = db.GetScavengingWithUser(user) 16:08:10.770 WARN: This function name is not correct: if scavError != ErrNotFound { 16:08:10.770 WARN: This function name is not correct: t.Fatalf("Unexpected error while calling GetScavengingWithUser: %v\n", scavError) 16:08:10.770 WARN: This function name is not correct: } 16:08:10.770 WARN: This function name is not correct: if scavError == nil { 16:08:10.770 WARN: This function name is not correct: t.Errorf("GetScavengingWithUser did not return ErrNotFound\n") 16:08:10.770 WARN: This function name is not correct: } 16:08:10.770 WARN: This function name is not correct: } 16:08:10.770 WARN: This function name is not correct: 16:08:10.770 INFO: Create the key db_test.go#TestInterestCreate 16:08:10.770 WARN: This function name is not correct: db := Db{dbAccess} 16:08:10.770 WARN: This function name is not correct: if err := db.Wipe(); err != nil { 16:08:10.770 WARN: This function name is not correct: t.Fatal(err) 16:08:10.770 WARN: This function name is not correct: } 16:08:10.770 WARN: This function name is not correct: fortress, fortressError := db.CreateFortress("Rainbow-Falls", 42, 42) 16:08:10.770 WARN: This function name is not correct: if fortressError != nil { 16:08:10.770 WARN: This function name is not correct: t.Fatalf("Error while calling CreateFortress: %v\n", fortressError) 16:08:10.770 WARN: This function name is not correct: } 16:08:10.770 WARN: This function name is not correct: inter, interError := db.CreateInterest(fortress, Location{42, 42}, 42, "Cloud-Kicking") 16:08:10.770 WARN: This function name is not correct: if interError != nil { 16:08:10.770 WARN: This function name is not correct: t.Fatalf("Error while calling CreateInterest: %v\n", interError) 16:08:10.770 WARN: This function name is not correct: } 16:08:10.770 WARN: This function name is not correct: if inter.Loc.Lon != 42 { 16:08:10.770 WARN: This function name is not correct: t.Errorf("Expected inter.Loc.Lon to be 42, got %v\n", inter.Loc.Lon) 16:08:10.770 WARN: This function name is not correct: } 16:08:10.770 WARN: This function name is not correct: if inter.Loc.Lat != 42 { 16:08:10.770 WARN: This function name is not correct: t.Errorf("Expected inter.Loc.Lat to be 42, got %v\n", inter.Loc.Lon) 16:08:10.770 WARN: This function name is not correct: } 16:08:10.770 WARN: This function name is not correct: if inter.Fortress != fortress.ID { 16:08:10.771 WARN: This function name is not correct: t.Errorf("Expected inter.Fortress to be %v, got %v\n", fortress.ID, inter.Fortress) 16:08:10.771 WARN: This function name is not correct: } 16:08:10.771 WARN: This function name is not correct: if inter.Game != "Cloud-Kicking" { 16:08:10.771 WARN: This function name is not correct: t.Errorf("Expected inter.Game to be Cloud-Kicking, got %v\n", inter.Game) 16:08:10.771 WARN: This function name is not correct: } 16:08:10.771 WARN: This function name is not correct: if inter.HP != 42 { 16:08:10.771 WARN: This function name is not correct: t.Errorf("Expected inter.HP to be 42, got %v", inter.HP) 16:08:10.771 WARN: This function name is not correct: } 16:08:10.771 WARN: This function name is not correct: } 16:08:10.771 WARN: This function name is not correct: 16:08:10.771 INFO: Create the key db_test.go#TestInterestGetWithLocation 16:08:10.771 WARN: This function name is not correct: db := Db{dbAccess} 16:08:10.771 WARN: This function name is not correct: if err := db.Wipe(); err != nil { 16:08:10.771 WARN: This function name is not correct: t.Fatal(err) 16:08:10.771 WARN: This function name is not correct: } 16:08:10.771 WARN: This function name is not correct: fortress, fortressError := db.CreateFortress("Rainbow-Falls", 42, 42) 16:08:10.771 WARN: This function name is not correct: if fortressError != nil { 16:08:10.771 WARN: This function name is not correct: t.Fatalf("Error while calling CreateFortress: %v\n", fortressError) 16:08:10.771 WARN: This function name is not correct: } 16:08:10.771 WARN: This function name is not correct: inter, interError := db.CreateInterest(fortress, Location{42, 42}, 42, "Cloud-Kicking") 16:08:10.771 WARN: This function name is not correct: if interError != nil { 16:08:10.771 WARN: This function name is not correct: t.Fatalf("Error while calling CreateInterest: %v\n", interError) 16:08:10.771 WARN: This function name is not correct: } 16:08:10.771 WARN: This function name is not correct: interId := inter.ID 16:08:10.771 WARN: This function name is not correct: inters, interError := db.GetInterestsWithLocation(Location{41.9999999, 41.9999999}, 1) 16:08:10.771 WARN: This function name is not correct: if interError != nil { 16:08:10.771 WARN: This function name is not correct: t.Fatalf("Error while calling GetInterestWithLocation: %v\n", interError) 16:08:10.771 WARN: This function name is not correct: } 16:08:10.771 WARN: This function name is not correct: if len(inters) != 1 { 16:08:10.771 WARN: This function name is not correct: t.Fatalf("Expected to find one fortress, got %v\n", len(inters)) 16:08:10.771 WARN: This function name is not correct: } 16:08:10.771 WARN: This function name is not correct: inter = inters[0] 16:08:10.772 WARN: This function name is not correct: if interId != inter.ID { 16:08:10.772 WARN: This function name is not correct: t.Errorf("Expected inter.ID to be %v, got %v\n", interId, inter.ID) 16:08:10.772 WARN: This function name is not correct: } 16:08:10.772 WARN: This function name is not correct: if inter.Loc.Lon != 42 { 16:08:10.772 WARN: This function name is not correct: t.Errorf("Expected inter.Loc.Lon to be 42, got %v\n", inter.Loc.Lon) 16:08:10.772 WARN: This function name is not correct: } 16:08:10.772 WARN: This function name is not correct: if inter.Loc.Lat != 42 { 16:08:10.772 WARN: This function name is not correct: t.Errorf("Expected inter.Loc.Lat to be 42, got %v\n", inter.Loc.Lon) 16:08:10.772 WARN: This function name is not correct: } 16:08:10.772 WARN: This function name is not correct: if inter.Fortress != fortress.ID { 16:08:10.772 WARN: This function name is not correct: t.Errorf("Expected inter.Fortress to be %v, got %v\n", fortress.ID, inter.Fortress) 16:08:10.772 WARN: This function name is not correct: } 16:08:10.772 WARN: This function name is not correct: if inter.Game != "Cloud-Kicking" { 16:08:10.772 WARN: This function name is not correct: t.Errorf("Expected inter.Game to be Cloud-Kicking, got %v\n", inter.Game) 16:08:10.772 WARN: This function name is not correct: } 16:08:10.772 WARN: This function name is not correct: if inter.HP != 42 { 16:08:10.772 WARN: This function name is not correct: t.Errorf("Expected inter.HP to be 42, got %v", inter.HP) 16:08:10.772 WARN: This function name is not correct: } 16:08:10.772 WARN: This function name is not correct: } 16:08:10.772 WARN: This function name is not correct: 16:08:10.772 INFO: Create the key db_test.go#TestInterestGetWithFortress 16:08:10.772 WARN: This function name is not correct: db := Db{dbAccess} 16:08:10.772 WARN: This function name is not correct: if err := db.Wipe(); err != nil { 16:08:10.772 WARN: This function name is not correct: t.Fatal(err) 16:08:10.772 WARN: This function name is not correct: } 16:08:10.772 WARN: This function name is not correct: fortress, fortressError := db.CreateFortress("Rainbow-Falls", 42, 42) 16:08:10.772 WARN: This function name is not correct: if fortressError != nil { 16:08:10.772 WARN: This function name is not correct: t.Fatalf("Error while calling CreateFortress: %v\n", fortressError) 16:08:10.773 WARN: This function name is not correct: } 16:08:10.773 WARN: This function name is not correct: inter, interError := db.CreateInterest(fortress, Location{42, 42}, 42, "Cloud-Kicking") 16:08:10.773 WARN: This function name is not correct: if interError != nil { 16:08:10.773 WARN: This function name is not correct: t.Fatalf("Error while calling CreateInterest: %v\n", interError) 16:08:10.773 WARN: This function name is not correct: } 16:08:10.773 WARN: This function name is not correct: interId := inter.ID 16:08:10.773 WARN: This function name is not correct: inters, interError := db.GetInterestsWithFortress(fortress.ID.Hex()) 16:08:10.773 WARN: This function name is not correct: if interError != nil { 16:08:10.773 WARN: This function name is not correct: t.Fatalf("Error while calling GetInterestWithLocation: %v\n", interError) 16:08:10.773 WARN: This function name is not correct: } 16:08:10.773 WARN: This function name is not correct: if len(inters) != 1 { 16:08:10.773 WARN: This function name is not correct: t.Fatalf("Expected to find one fortress, got %v\n", len(inters)) 16:08:10.773 WARN: This function name is not correct: } 16:08:10.773 WARN: This function name is not correct: inter = inters[0] 16:08:10.773 WARN: This function name is not correct: if interId != inter.ID { 16:08:10.773 WARN: This function name is not correct: t.Errorf("Expected inter.ID to be %v, got %v\n", interId, inter.ID) 16:08:10.773 WARN: This function name is not correct: } 16:08:10.773 WARN: This function name is not correct: if inter.Loc.Lon != 42 { 16:08:10.773 WARN: This function name is not correct: t.Errorf("Expected inter.Loc.Lon to be 42, got %v\n", inter.Loc.Lon) 16:08:10.773 WARN: This function name is not correct: } 16:08:10.773 WARN: This function name is not correct: if inter.Loc.Lat != 42 { 16:08:10.773 WARN: This function name is not correct: t.Errorf("Expected inter.Loc.Lat to be 42, got %v\n", inter.Loc.Lon) 16:08:10.773 WARN: This function name is not correct: } 16:08:10.773 WARN: This function name is not correct: if inter.Fortress != fortress.ID { 16:08:10.773 WARN: This function name is not correct: t.Errorf("Expected inter.Fortress to be %v, got %v\n", fortress.ID, inter.Fortress) 16:08:10.773 WARN: This function name is not correct: } 16:08:10.773 WARN: This function name is not correct: if inter.Game != "Cloud-Kicking" { 16:08:10.773 WARN: This function name is not correct: t.Errorf("Expected inter.Game to be Cloud-Kicking, got %v\n", inter.Game) 16:08:10.773 WARN: This function name is not correct: } 16:08:10.773 WARN: This function name is not correct: if inter.HP != 42 { 16:08:10.773 WARN: This function name is not correct: t.Errorf("Expected inter.HP to be 42, got %v", inter.HP) 16:08:10.773 WARN: This function name is not correct: } 16:08:10.773 WARN: This function name is not correct: } 16:08:10.773 WARN: This function name is not correct: 16:08:10.773 INFO: Create the key db_test.go#TestInterestGetWithId 16:08:10.773 WARN: This function name is not correct: db := Db{dbAccess} 16:08:10.773 WARN: This function name is not correct: if err := db.Wipe(); err != nil { 16:08:10.774 WARN: This function name is not correct: t.Fatal(err) 16:08:10.774 WARN: This function name is not correct: } 16:08:10.774 WARN: This function name is not correct: fortress, fortressError := db.CreateFortress("Rainbow-Falls", 42, 42) 16:08:10.774 WARN: This function name is not correct: if fortressError != nil { 16:08:10.774 WARN: This function name is not correct: t.Fatalf("Error while calling CreateFortress: %v\n", fortressError) 16:08:10.774 WARN: This function name is not correct: } 16:08:10.774 WARN: This function name is not correct: inter, interError := db.CreateInterest(fortress, Location{42, 42}, 42, "Cloud-Kicking") 16:08:10.774 WARN: This function name is not correct: if interError != nil { 16:08:10.774 WARN: This function name is not correct: t.Fatalf("Error while calling CreateInterest: %v\n", interError) 16:08:10.774 WARN: This function name is not correct: } 16:08:10.774 WARN: This function name is not correct: interId := inter.ID 16:08:10.774 WARN: This function name is not correct: inter, interError = db.GetInterestWithID(interId.Hex()) 16:08:10.774 WARN: This function name is not correct: if inter.Loc.Lon != 42 { 16:08:10.774 WARN: This function name is not correct: t.Errorf("Expected inter.Loc.Lon to be 42, got %v\n", inter.Loc.Lon) 16:08:10.774 WARN: This function name is not correct: } 16:08:10.774 WARN: This function name is not correct: if inter.Loc.Lat != 42 { 16:08:10.774 WARN: This function name is not correct: t.Errorf("Expected inter.Loc.Lat to be 42, got %v\n", inter.Loc.Lon) 16:08:10.774 WARN: This function name is not correct: } 16:08:10.774 WARN: This function name is not correct: if inter.Fortress != fortress.ID { 16:08:10.774 WARN: This function name is not correct: t.Errorf("Expected inter.Fortress to be %v, got %v\n", fortress.ID, inter.Fortress) 16:08:10.774 WARN: This function name is not correct: } 16:08:10.774 WARN: This function name is not correct: if inter.Game != "Cloud-Kicking" { 16:08:10.774 WARN: This function name is not correct: t.Errorf("Expected inter.Game to be Cloud-Kicking, got %v\n", inter.Game) 16:08:10.774 WARN: This function name is not correct: } 16:08:10.774 WARN: This function name is not correct: if inter.HP != 42 { 16:08:10.774 WARN: This function name is not correct: t.Errorf("Expected inter.HP to be 42, got %v", inter.HP) 16:08:10.774 WARN: This function name is not correct: } 16:08:10.774 WARN: This function name is not correct: } 16:08:10.774 WARN: This function name is not correct: 16:08:10.774 INFO: Create the key db_test.go#TestInterestUpdate 16:08:10.774 WARN: This function name is not correct: db := Db{dbAccess} 16:08:10.774 WARN: This function name is not correct: if err := db.Wipe(); err != nil { 16:08:10.774 WARN: This function name is not correct: t.Fatal(err) 16:08:10.775 WARN: This function name is not correct: } 16:08:10.775 WARN: This function name is not correct: fortress, fortressError := db.CreateFortress("Rainbow-Falls", 42, 42) 16:08:10.775 WARN: This function name is not correct: if fortressError != nil { 16:08:10.775 WARN: This function name is not correct: t.Fatalf("Error while calling CreateFortress: %v\n", fortressError) 16:08:10.775 WARN: This function name is not correct: } 16:08:10.775 WARN: This function name is not correct: inter, interError := db.CreateInterest(fortress, Location{42, 42}, 42, "Cloud-Kicking") 16:08:10.775 WARN: This function name is not correct: if interError != nil { 16:08:10.775 WARN: This function name is not correct: t.Fatalf("Error while calling CreateInterest: %v\n", interError) 16:08:10.775 WARN: This function name is not correct: } 16:08:10.775 WARN: This function name is not correct: interId := inter.ID 16:08:10.775 WARN: This function name is not correct: inter.Game = "Cloud-Busting" 16:08:10.775 WARN: This function name is not correct: interError = db.UpdateInterest(inter) 16:08:10.775 WARN: This function name is not correct: if interError != nil { 16:08:10.775 WARN: This function name is not correct: t.Fatalf("Error while calling UpdateInterest: %v\n", interError) 16:08:10.775 WARN: This function name is not correct: } 16:08:10.775 WARN: This function name is not correct: inter, interError = db.GetInterestWithID(interId.Hex()) 16:08:10.775 WARN: This function name is not correct: if inter.Loc.Lon != 42 { 16:08:10.775 WARN: This function name is not correct: t.Errorf("Expected inter.Loc.Lon to be 42, got %v\n", inter.Loc.Lon) 16:08:10.775 WARN: This function name is not correct: } 16:08:10.775 WARN: This function name is not correct: if inter.Loc.Lat != 42 { 16:08:10.775 WARN: This function name is not correct: t.Errorf("Expected inter.Loc.Lat to be 42, got %v\n", inter.Loc.Lon) 16:08:10.775 WARN: This function name is not correct: } 16:08:10.775 WARN: This function name is not correct: if inter.Fortress != fortress.ID { 16:08:10.775 WARN: This function name is not correct: t.Errorf("Expected inter.Fortress to be %v, got %v\n", fortress.ID, inter.Fortress) 16:08:10.775 WARN: This function name is not correct: } 16:08:10.775 WARN: This function name is not correct: if inter.Game != "Cloud-Busting" { 16:08:10.775 WARN: This function name is not correct: t.Errorf("Expected inter.Game to be Cloud-Busting, got %v\n", inter.Game) 16:08:10.775 WARN: This function name is not correct: } 16:08:10.775 WARN: This function name is not correct: if inter.HP != 42 { 16:08:10.776 WARN: This function name is not correct: t.Errorf("Expected inter.HP to be 42, got %v", inter.HP) 16:08:10.776 WARN: This function name is not correct: } 16:08:10.776 WARN: This function name is not correct: } 16:08:10.776 WARN: This function name is not correct: 16:08:10.776 INFO: Create the key db_test.go#TestInterestDelete 16:08:10.776 WARN: This function name is not correct: db := Db{dbAccess} 16:08:10.776 WARN: This function name is not correct: if err := db.Wipe(); err != nil { 16:08:10.776 WARN: This function name is not correct: t.Fatal(err) 16:08:10.776 WARN: This function name is not correct: } 16:08:10.776 WARN: This function name is not correct: fortress, fortressError := db.CreateFortress("Rainbow-Falls", 42, 42) 16:08:10.776 WARN: This function name is not correct: if fortressError != nil { 16:08:10.776 WARN: This function name is not correct: t.Fatalf("Error while calling CreateFortress: %v\n", fortressError) 16:08:10.776 WARN: This function name is not correct: } 16:08:10.776 WARN: This function name is not correct: inter, interError := db.CreateInterest(fortress, Location{42, 42}, 42, "Cloud-Kicking") 16:08:10.776 WARN: This function name is not correct: if interError != nil { 16:08:10.776 WARN: This function name is not correct: t.Fatalf("Error while calling CreateInterest: %v\n", interError) 16:08:10.776 WARN: This function name is not correct: } 16:08:10.776 WARN: This function name is not correct: interId := inter.ID 16:08:10.776 WARN: This function name is not correct: interError = db.DeleteInterest(inter) 16:08:10.776 WARN: This function name is not correct: if interError != nil { 16:08:10.776 WARN: This function name is not correct: t.Fatalf("Error while calling DeleteScavenging: %v\n", interError) 16:08:10.776 WARN: This function name is not correct: } 16:08:10.776 WARN: This function name is not correct: _, interError = db.GetInterestWithID(interId.Hex()) 16:08:10.776 WARN: This function name is not correct: if interError != ErrNotFound { 16:08:10.777 WARN: This function name is not correct: t.Fatalf("Unexpected error while calling GetInterestWithID: %v\n", interError) 16:08:10.777 WARN: This function name is not correct: } 16:08:10.777 WARN: This function name is not correct: if interError == nil { 16:08:10.777 WARN: This function name is not correct: t.Errorf("GetScavengingWithUser did not return ErrNotFound\n") 16:08:10.777 WARN: This function name is not correct: } 16:08:10.777 WARN: This function name is not correct: } 16:08:10.777 WARN: This function name is not correct: 16:08:10.777 INFO: Create the key db_test.go#TestInterestActonCreate 16:08:10.777 WARN: This function name is not correct: db := Db{dbAccess} 16:08:10.777 WARN: This function name is not correct: if err := db.Wipe(); err != nil { 16:08:10.777 WARN: This function name is not correct: t.Fatal(err) 16:08:10.777 WARN: This function name is not correct: } 16:08:10.777 WARN: This function name is not correct: fortress, fortressError := db.CreateFortress("Rainbow-Falls", 42, 42) 16:08:10.777 WARN: This function name is not correct: if fortressError != nil { 16:08:10.777 WARN: This function name is not correct: t.Fatalf("Error while calling CreateFortress: %v\n", fortressError) 16:08:10.777 WARN: This function name is not correct: } 16:08:10.777 WARN: This function name is not correct: inter, interError := db.CreateInterest(fortress, Location{42, 42}, 42, "Cloud-Kicking") 16:08:10.777 WARN: This function name is not correct: if interError != nil { 16:08:10.777 WARN: This function name is not correct: t.Fatalf("Error while calling CreateInterest: %v\n", interError) 16:08:10.777 WARN: This function name is not correct: } 16:08:10.777 WARN: This function name is not correct: user, userError := db.CreateUser("Rainbow-Dash", "dashie@cloudsdale.eq", "wonderbolts123") 16:08:10.777 WARN: This function name is not correct: if userError != nil { 16:08:10.777 WARN: This function name is not correct: t.Fatalf("Error while calling CreateUser: %v\n", userError) 16:08:10.777 WARN: This function name is not correct: } 16:08:10.777 WARN: This function name is not correct: timestamp := time.Now().Truncate(time.Millisecond) 16:08:10.777 WARN: This function name is not correct: interAction, interActionError := db.CreateInterestAction(user, inter, timestamp) 16:08:10.777 WARN: This function name is not correct: if interActionError != nil { 16:08:10.778 WARN: This function name is not correct: t.Fatalf("Error while calling CreateInterestAction: %v\n", interActionError) 16:08:10.778 WARN: This function name is not correct: } 16:08:10.778 WARN: This function name is not correct: if interAction.User != user.ID { 16:08:10.778 WARN: This function name is not correct: t.Errorf("Expected interAction.User to be %v, got %v", user.ID, interAction.ID) 16:08:10.778 WARN: This function name is not correct: } 16:08:10.778 WARN: This function name is not correct: if interAction.Interest != inter.ID { 16:08:10.778 WARN: This function name is not correct: t.Errorf("Expected interAction.Interest to be %v, got %v", inter.ID, interAction.Interest) 16:08:10.778 WARN: This function name is not correct: } 16:08:10.778 WARN: This function name is not correct: if interAction.Time != timestamp { 16:08:10.778 WARN: This function name is not correct: t.Errorf("Expected interAction.Time to be %v, got %v", timestamp, interAction.Time) 16:08:10.778 WARN: This function name is not correct: } 16:08:10.778 WARN: This function name is not correct: } 16:08:10.778 WARN: This function name is not correct: 16:08:10.778 INFO: Create the key db_test.go#TestInterestActionGetWithUserAndInterest 16:08:10.778 WARN: This function name is not correct: db := Db{dbAccess} 16:08:10.778 WARN: This function name is not correct: if err := db.Wipe(); err != nil { 16:08:10.779 WARN: This function name is not correct: t.Fatal(err) 16:08:10.779 WARN: This function name is not correct: } 16:08:10.779 WARN: This function name is not correct: fortress, fortressError := db.CreateFortress("Rainbow-Falls", 42, 42) 16:08:10.779 WARN: This function name is not correct: if fortressError != nil { 16:08:10.779 WARN: This function name is not correct: t.Fatalf("Error while calling CreateFortress: %v\n", fortressError) 16:08:10.779 WARN: This function name is not correct: } 16:08:10.779 WARN: This function name is not correct: inter, interError := db.CreateInterest(fortress, Location{42, 42}, 42, "Cloud-Kicking") 16:08:10.779 WARN: This function name is not correct: if interError != nil { 16:08:10.779 WARN: This function name is not correct: t.Fatalf("Error while calling CreateInterest: %v\n", interError) 16:08:10.779 WARN: This function name is not correct: } 16:08:10.779 WARN: This function name is not correct: user, userError := db.CreateUser("Rainbow-Dash", "dashie@cloudsdale.eq", "wonderbolts123") 16:08:10.779 WARN: This function name is not correct: if userError != nil { 16:08:10.779 WARN: This function name is not correct: t.Fatalf("Error while calling CreateUser: %v\n", userError) 16:08:10.779 WARN: This function name is not correct: } 16:08:10.779 WARN: This function name is not correct: timestamp := time.Now().Truncate(time.Millisecond) 16:08:10.779 WARN: This function name is not correct: interAction, interActionError := db.CreateInterestAction(user, inter, timestamp) 16:08:10.779 WARN: This function name is not correct: if interActionError != nil { 16:08:10.779 WARN: This function name is not correct: t.Fatalf("Error while calling CreateInterestAction: %v\n", interActionError) 16:08:10.779 WARN: This function name is not correct: } 16:08:10.779 WARN: This function name is not correct: interAction, interActionError = db.GetInterestActionWithUserAndInterest(user.ID.Hex(), inter.ID.Hex()) 16:08:10.779 WARN: This function name is not correct: if interActionError != nil { 16:08:10.779 WARN: This function name is not correct: t.Fatalf("Error while calling GetInterestActionWithUserAndInterest: %v\n", interActionError) 16:08:10.779 WARN: This function name is not correct: } 16:08:10.780 WARN: This function name is not correct: if interAction.User != user.ID { 16:08:10.780 WARN: This function name is not correct: t.Errorf("Expected interAction.User to be %v, got %v", user.ID, interAction.ID) 16:08:10.780 WARN: This function name is not correct: } 16:08:10.780 WARN: This function name is not correct: if interAction.Interest != inter.ID { 16:08:10.780 WARN: This function name is not correct: t.Errorf("Expected interAction.Interest to be %v, got %v", inter.ID, interAction.Interest) 16:08:10.780 WARN: This function name is not correct: } 16:08:10.780 WARN: This function name is not correct: if interAction.Time != timestamp { 16:08:10.780 WARN: This function name is not correct: t.Errorf("Expected interAction.Time to be %v, got %v", timestamp, interAction.Time) 16:08:10.780 WARN: This function name is not correct: } 16:08:10.780 WARN: This function name is not correct: } 16:08:10.780 WARN: This function name is not correct: 16:08:10.780 INFO: Create the key db_test.go#TestInterestActionGetWithInterest 16:08:10.780 WARN: This function name is not correct: db := Db{dbAccess} 16:08:10.780 WARN: This function name is not correct: if err := db.Wipe(); err != nil { 16:08:10.780 WARN: This function name is not correct: t.Fatal(err) 16:08:10.780 WARN: This function name is not correct: } 16:08:10.780 WARN: This function name is not correct: fortress, fortressError := db.CreateFortress("Rainbow-Falls", 42, 42) 16:08:10.780 WARN: This function name is not correct: if fortressError != nil { 16:08:10.780 WARN: This function name is not correct: t.Fatalf("Error while calling CreateFortress: %v\n", fortressError) 16:08:10.780 WARN: This function name is not correct: } 16:08:10.780 WARN: This function name is not correct: inter, interError := db.CreateInterest(fortress, Location{42, 42}, 42, "Cloud-Kicking") 16:08:10.780 WARN: This function name is not correct: if interError != nil { 16:08:10.780 WARN: This function name is not correct: t.Fatalf("Error while calling CreateInterest: %v\n", interError) 16:08:10.780 WARN: This function name is not correct: } 16:08:10.780 WARN: This function name is not correct: user, userError := db.CreateUser("Rainbow-Dash", "dashie@cloudsdale.eq", "wonderbolts123") 16:08:10.780 WARN: This function name is not correct: if userError != nil { 16:08:10.780 WARN: This function name is not correct: t.Fatalf("Error while calling CreateUser: %v\n", userError) 16:08:10.780 WARN: This function name is not correct: } 16:08:10.780 WARN: This function name is not correct: timestamp := time.Now().Truncate(time.Millisecond) 16:08:10.780 WARN: This function name is not correct: interAction, interActionError := db.CreateInterestAction(user, inter, timestamp) 16:08:10.780 WARN: This function name is not correct: if interActionError != nil { 16:08:10.780 WARN: This function name is not correct: t.Fatalf("Error while calling CreateInterestAction: %v\n", interActionError) 16:08:10.780 WARN: This function name is not correct: } 16:08:10.780 WARN: This function name is not correct: interActions, interActionError := db.GetInterestActionsWithInterest(inter.ID.Hex()) 16:08:10.780 WARN: This function name is not correct: if interActionError != nil { 16:08:10.781 WARN: This function name is not correct: t.Fatalf("Error while calling GetInterestActionsWithInterest: %v\n", interActionError) 16:08:10.781 WARN: This function name is not correct: } 16:08:10.781 WARN: This function name is not correct: if len(interActions) != 1 { 16:08:10.781 WARN: This function name is not correct: t.Fatalf("Expected to find one interest action, got %v\n", len(interActions)) 16:08:10.781 WARN: This function name is not correct: } 16:08:10.781 WARN: This function name is not correct: interAction = interActions[0] 16:08:10.781 WARN: This function name is not correct: if interAction.User != user.ID { 16:08:10.781 WARN: This function name is not correct: t.Errorf("Expected interAction.User to be %v, got %v", user.ID, interAction.ID) 16:08:10.781 WARN: This function name is not correct: } 16:08:10.781 WARN: This function name is not correct: if interAction.Interest != inter.ID { 16:08:10.781 WARN: This function name is not correct: t.Errorf("Expected interAction.Interest to be %v, got %v", inter.ID, interAction.Interest) 16:08:10.781 WARN: This function name is not correct: } 16:08:10.781 WARN: This function name is not correct: if interAction.Time != timestamp { 16:08:10.781 WARN: This function name is not correct: t.Errorf("Expected interAction.Time to be %v, got %v", timestamp, interAction.Time) 16:08:10.781 WARN: This function name is not correct: } 16:08:10.781 WARN: This function name is not correct: } 16:08:10.781 WARN: This function name is not correct: 16:08:10.781 INFO: Create the key db_test.go#TestInterestActionDelete 16:08:10.781 WARN: This function name is not correct: db := Db{dbAccess} 16:08:10.781 WARN: This function name is not correct: if err := db.Wipe(); err != nil { 16:08:10.781 WARN: This function name is not correct: t.Fatal(err) 16:08:10.781 WARN: This function name is not correct: } 16:08:10.781 WARN: This function name is not correct: fortress, fortressError := db.CreateFortress("Rainbow-Falls", 42, 42) 16:08:10.781 WARN: This function name is not correct: if fortressError != nil { 16:08:10.781 WARN: This function name is not correct: t.Fatalf("Error while calling CreateFortress: %v\n", fortressError) 16:08:10.781 WARN: This function name is not correct: } 16:08:10.781 WARN: This function name is not correct: inter, interError := db.CreateInterest(fortress, Location{42, 42}, 42, "Cloud-Kicking") 16:08:10.781 WARN: This function name is not correct: if interError != nil { 16:08:10.781 WARN: This function name is not correct: t.Fatalf("Error while calling CreateInterest: %v\n", interError) 16:08:10.781 WARN: This function name is not correct: } 16:08:10.781 WARN: This function name is not correct: user, userError := db.CreateUser("Rainbow-Dash", "dashie@cloudsdale.eq", "wonderbolts123") 16:08:10.781 WARN: This function name is not correct: if userError != nil { 16:08:10.781 WARN: This function name is not correct: t.Fatalf("Error while calling CreateUser: %v\n", userError) 16:08:10.781 WARN: This function name is not correct: } 16:08:10.781 WARN: This function name is not correct: timestamp := time.Now().Truncate(time.Millisecond) 16:08:10.781 WARN: This function name is not correct: interAction, interActionError := db.CreateInterestAction(user, inter, timestamp) 16:08:10.781 WARN: This function name is not correct: if interActionError != nil { 16:08:10.781 WARN: This function name is not correct: t.Fatalf("Error while calling CreateInterestAction: %v\n", interActionError) 16:08:10.782 WARN: This function name is not correct: } 16:08:10.782 WARN: This function name is not correct: interActionError = db.DeleteInterestAction(interAction) 16:08:10.782 WARN: This function name is not correct: if interActionError != nil { 16:08:10.782 WARN: This function name is not correct: t.Fatalf("Error while calling DeleteInterestAction: %v\n", interActionError) 16:08:10.782 WARN: This function name is not correct: } 16:08:10.782 WARN: This function name is not correct: _, interActionError = db.GetInterestActionWithUserAndInterest(user.ID.Hex(), inter.ID.Hex()) 16:08:10.782 WARN: This function name is not correct: if interActionError != ErrNotFound { 16:08:10.782 WARN: This function name is not correct: t.Fatalf("Unexpected error while calling GetInterestActionWithUserAndInterest: %v\n", interActionError) 16:08:10.782 WARN: This function name is not correct: } 16:08:10.782 WARN: This function name is not correct: if interActionError == nil { 16:08:10.782 WARN: This function name is not correct: t.Errorf("GetInterestWithID did not return ErrNotFound\n") 16:08:10.782 WARN: This function name is not correct: } 16:08:10.782 WARN: This function name is not correct: } 16:08:10.782 WARN: This function name is not correct: 16:08:10.782 INFO: Create the key db_test.go#TestPollCreate 16:08:10.782 WARN: This function name is not correct: db := Db{dbAccess} 16:08:10.782 WARN: This function name is not correct: timer := time.Now() 16:08:10.782 WARN: This function name is not correct: fortress, fortressError := db.CreateFortress("Rainbow-Falls", 42, 42) 16:08:10.782 WARN: This function name is not correct: if fortressError != nil { 16:08:10.782 WARN: This function name is not correct: t.Fatalf("Error while calling CreateFortress: %v\n", fortressError) 16:08:10.782 WARN: This function name is not correct: } 16:08:10.782 WARN: This function name is not correct: poll, pollErr := db.CreatePoll("Is Rainbow-Dash best pony ?", fortress.ID.Hex(), timer) 16:08:10.782 WARN: This function name is not correct: if pollErr != nil { 16:08:10.782 WARN: This function name is not correct: t.Fatalf("Error while calling CreatePoll: %v\n", pollErr) 16:08:10.782 WARN: This function name is not correct: } 16:08:10.782 WARN: This function name is not correct: if poll.Question != "Is Rainbow-Dash best pony ?" { 16:08:10.782 WARN: This function name is not correct: t.Errorf("Expected poll.Question to be %v, got %v", "", poll.Question) 16:08:10.782 WARN: This function name is not correct: } 16:08:10.782 WARN: This function name is not correct: if poll.Fortress != fortress.ID.Hex() { 16:08:10.782 WARN: This function name is not correct: t.Errorf("Expected poll.Fortress to be %v, got %v", fortress.ID.Hex(), poll.Fortress) 16:08:10.782 WARN: This function name is not correct: } 16:08:10.782 WARN: This function name is not correct: if poll.CloseTime != timer { 16:08:10.782 WARN: This function name is not correct: t.Errorf("Expected poll.CloseTime to be %v, got %v", timer, poll.CloseTime) 16:08:10.782 WARN: This function name is not correct: } 16:08:10.782 WARN: This function name is not correct: } 16:08:10.782 WARN: This function name is not correct: 16:08:10.782 INFO: Create the key db_test.go#TestPollGetById 16:08:10.782 WARN: This function name is not correct: db := Db{dbAccess} 16:08:10.783 WARN: This function name is not correct: if err := db.Wipe(); err != nil { 16:08:10.783 WARN: This function name is not correct: t.Fatal(err) 16:08:10.783 WARN: This function name is not correct: } 16:08:10.783 WARN: This function name is not correct: timer := time.Now().Truncate(time.Millisecond) 16:08:10.783 WARN: This function name is not correct: fortress, fortressError := db.CreateFortress("Rainbow-Falls", 42, 42) 16:08:10.783 WARN: This function name is not correct: if fortressError != nil { 16:08:10.783 WARN: This function name is not correct: t.Fatalf("Error while calling CreateFortress: %v\n", fortressError) 16:08:10.783 WARN: This function name is not correct: } 16:08:10.783 WARN: This function name is not correct: poll, pollErr := db.CreatePoll("Is Rainbow-Dash best pony ?", fortress.ID.Hex(), timer) 16:08:10.783 WARN: This function name is not correct: if pollErr != nil { 16:08:10.783 WARN: This function name is not correct: t.Fatalf("Error while calling CreatePoll: %v\n", pollErr) 16:08:10.783 WARN: This function name is not correct: } 16:08:10.783 WARN: This function name is not correct: id := poll.ID 16:08:10.783 WARN: This function name is not correct: poll, pollErr = db.GetPollById(id.Hex()) 16:08:10.783 WARN: This function name is not correct: if pollErr != nil { 16:08:10.783 WARN: This function name is not correct: t.Fatalf("Error while calling GetPollById: %v\n", pollErr) 16:08:10.783 WARN: This function name is not correct: } 16:08:10.783 WARN: This function name is not correct: if poll.ID != id { 16:08:10.783 WARN: This function name is not correct: t.Errorf("Expected poll.ID to be %v, got %v", id, poll.ID) 16:08:10.783 WARN: This function name is not correct: } 16:08:10.783 WARN: This function name is not correct: if poll.Question != "Is Rainbow-Dash best pony ?" { 16:08:10.783 WARN: This function name is not correct: t.Errorf("Expected poll.Question to be %v, got %v", "Is Rainbow-Dash best pony ?", poll.Question) 16:08:10.783 WARN: This function name is not correct: } 16:08:10.783 WARN: This function name is not correct: if poll.Fortress != fortress.ID.Hex() { 16:08:10.783 WARN: This function name is not correct: t.Errorf("Expected poll.Fortress to be %v, got %v", fortress.ID.Hex(), poll.Fortress) 16:08:10.783 WARN: This function name is not correct: } 16:08:10.783 WARN: This function name is not correct: if poll.CloseTime != timer { 16:08:10.783 WARN: This function name is not correct: t.Errorf("Expected poll.CloseTime to be %v, got %v", timer, poll.CloseTime) 16:08:10.783 WARN: This function name is not correct: } 16:08:10.783 WARN: This function name is not correct: } 16:08:10.783 WARN: This function name is not correct: 16:08:10.783 INFO: Create the key db_test.go#TestPollDelete 16:08:10.784 WARN: This function name is not correct: db := Db{dbAccess} 16:08:10.784 WARN: This function name is not correct: if err := db.Wipe(); err != nil { 16:08:10.784 WARN: This function name is not correct: t.Fatal(err) 16:08:10.784 WARN: This function name is not correct: } 16:08:10.784 WARN: This function name is not correct: timer := time.Now().Truncate(time.Millisecond) 16:08:10.784 WARN: This function name is not correct: fortress, fortressError := db.CreateFortress("Rainbow-Falls", 42, 42) 16:08:10.784 WARN: This function name is not correct: if fortressError != nil { 16:08:10.784 WARN: This function name is not correct: t.Fatalf("Error while calling CreateFortress: %v\n", fortressError) 16:08:10.784 WARN: This function name is not correct: } 16:08:10.784 WARN: This function name is not correct: poll, pollErr := db.CreatePoll("Is Rainbow-Dash best pony ?", fortress.ID.Hex(), timer) 16:08:10.784 WARN: This function name is not correct: if pollErr != nil { 16:08:10.784 WARN: This function name is not correct: t.Fatalf("Error while calling CreatePoll: %v\n", pollErr) 16:08:10.784 WARN: This function name is not correct: } 16:08:10.784 WARN: This function name is not correct: pollErr = db.DeletePollId(poll.ID.Hex()) 16:08:10.784 WARN: This function name is not correct: if pollErr != ErrNotFound { 16:08:10.784 WARN: This function name is not correct: t.Fatalf("Unexpected error while calling DeletePollId: %v\n", pollErr) 16:08:10.784 WARN: This function name is not correct: } 16:08:10.784 WARN: This function name is not correct: } 16:08:10.784 INFO: Create the key db_test.go#TestPollVote 16:08:10.784 WARN: This function name is not correct: db := Db{dbAccess} 16:08:10.784 WARN: This function name is not correct: if err := db.Wipe(); err != nil { 16:08:10.784 WARN: This function name is not correct: t.Fatal(err) 16:08:10.784 WARN: This function name is not correct: } 16:08:10.784 WARN: This function name is not correct: timer := time.Now().Truncate(time.Millisecond).Add(time.Hour * 48) 16:08:10.785 WARN: This function name is not correct: fortress, fortressError := db.CreateFortress("Rainbow-Falls", 42, 42) 16:08:10.785 WARN: This function name is not correct: if fortressError != nil { 16:08:10.785 WARN: This function name is not correct: t.Fatalf("Error while calling CreateFortress: %v\n", fortressError) 16:08:10.785 WARN: This function name is not correct: } 16:08:10.785 WARN: This function name is not correct: poll, pollErr := db.CreatePoll("Is Rainbow-Dash best pony ?", fortress.ID.Hex(), timer) 16:08:10.785 WARN: This function name is not correct: if pollErr != nil { 16:08:10.785 WARN: This function name is not correct: t.Fatalf("Error while calling CreatePoll: %v\n", pollErr) 16:08:10.785 WARN: This function name is not correct: } 16:08:10.785 WARN: This function name is not correct: user, userError := db.CreateUser("Rainbow-Dash", "dashie@cloudsdale.eq", "wonderbolts123") 16:08:10.785 WARN: This function name is not correct: if userError != nil { 16:08:10.785 WARN: This function name is not correct: t.Fatalf("Error while calling CreateUser: %v\n", userError) 16:08:10.785 WARN: This function name is not correct: } 16:08:10.785 WARN: This function name is not correct: user.Fortress = fortress.ID 16:08:10.785 WARN: This function name is not correct: userError = db.UpdateUser(user) 16:08:10.785 WARN: This function name is not correct: if userError != nil { 16:08:10.785 WARN: This function name is not correct: t.Fatalf("Error while calling UpdateUser: %v\n", userError) 16:08:10.785 WARN: This function name is not correct: } 16:08:10.785 WARN: This function name is not correct: voteErr := db.PollAddUserVote(poll.ID.Hex(), user.ID.Hex(), true) 16:08:10.785 WARN: This function name is not correct: if voteErr != nil { 16:08:10.785 WARN: This function name is not correct: t.Fatalf("Error while calling PollAddUserVote: %v\n", voteErr) 16:08:10.785 WARN: This function name is not correct: } 16:08:10.785 WARN: This function name is not correct: poll, pollErr = db.GetPollById(poll.ID.Hex()) 16:08:10.785 WARN: This function name is not correct: if pollErr != nil { 16:08:10.785 WARN: This function name is not correct: t.Fatalf("Error while calling GetPollById: %v\n", pollErr) 16:08:10.785 WARN: This function name is not correct: } 16:08:10.785 WARN: This function name is not correct: if poll.YesVote != 1 { 16:08:10.785 WARN: This function name is not correct: t.Errorf("Expected poll.YesVote to be 1, got %v\n", poll.YesVote) 16:08:10.785 WARN: This function name is not correct: } 16:08:10.785 WARN: This function name is not correct: } 16:08:10.785 WARN: This function name is not correct: 16:08:10.785 INFO: Create the key db_test.go#TestPollCheckUserAlreadyVoted 16:08:10.786 WARN: This function name is not correct: db := Db{dbAccess} 16:08:10.786 WARN: This function name is not correct: if err := db.Wipe(); err != nil { 16:08:10.786 WARN: This function name is not correct: t.Fatal(err) 16:08:10.786 WARN: This function name is not correct: } 16:08:10.786 WARN: This function name is not correct: timer := time.Now().Truncate(time.Millisecond).Add(time.Hour * 48) 16:08:10.786 WARN: This function name is not correct: fortress, fortressError := db.CreateFortress("Rainbow-Falls", 42, 42) 16:08:10.786 WARN: This function name is not correct: if fortressError != nil { 16:08:10.786 WARN: This function name is not correct: t.Fatalf("Error while calling CreateFortress: %v\n", fortressError) 16:08:10.786 WARN: This function name is not correct: } 16:08:10.786 WARN: This function name is not correct: poll, pollErr := db.CreatePoll("Is Rainbow-Dash best pony ?", fortress.ID.Hex(), timer) 16:08:10.786 WARN: This function name is not correct: if pollErr != nil { 16:08:10.786 WARN: This function name is not correct: t.Fatalf("Error while calling CreatePoll: %v\n", pollErr) 16:08:10.786 WARN: This function name is not correct: } 16:08:10.786 WARN: This function name is not correct: user, userError := db.CreateUser("Rainbow-Dash", "dashie@cloudsdale.eq", "wonderbolts123") 16:08:10.786 WARN: This function name is not correct: if userError != nil { 16:08:10.786 WARN: This function name is not correct: t.Fatalf("Error while calling CreateUser: %v\n", userError) 16:08:10.786 WARN: This function name is not correct: } 16:08:10.786 WARN: This function name is not correct: user.Fortress = fortress.ID 16:08:10.786 WARN: This function name is not correct: userError = db.UpdateUser(user) 16:08:10.786 WARN: This function name is not correct: if userError != nil { 16:08:10.786 WARN: This function name is not correct: t.Fatalf("Error while calling UpdateUser: %v\n", userError) 16:08:10.786 WARN: This function name is not correct: } 16:08:10.786 WARN: This function name is not correct: voteErr := db.PollAddUserVote(poll.ID.Hex(), user.ID.Hex(), true) 16:08:10.786 WARN: This function name is not correct: if voteErr != nil { 16:08:10.786 WARN: This function name is not correct: t.Fatalf("Error while calling PollAddUserVote: %v\n", voteErr) 16:08:10.786 WARN: This function name is not correct: } 16:08:10.786 WARN: This function name is not correct: res, checkErr := db.PollCheckUserAlreadyVoted(poll.ID.Hex(), user.ID.Hex()) 16:08:10.786 WARN: This function name is not correct: if checkErr != nil { 16:08:10.786 WARN: This function name is not correct: t.Fatalf("Error while calling PollCheckUserAlreadyVoted: %v\n", userError) 16:08:10.786 WARN: This function name is not correct: } 16:08:10.786 WARN: This function name is not correct: if res != true { 16:08:10.787 WARN: This function name is not correct: t.Error("Expected res to be true, got false\n") 16:08:10.787 WARN: This function name is not correct: } 16:08:10.787 WARN: This function name is not correct: } 16:08:10.787 DEBUG: {db_test.go#TestFortressCreation=/home/jcampion/work/go/src/gitlab.com/HumanRevolt/hrserver/db/db_test.go, db_test.go#TestInterestGetWithFortress=/home/jcampion/work/go/src/gitlab.com/HumanRevolt/hrserver/db/db_test.go, db_test.go#TestTokenGetWithUser=/home/jcampion/work/go/src/gitlab.com/HumanRevolt/hrserver/db/db_test.go, db_test.go#TestTokenCreate=/home/jcampion/work/go/src/gitlab.com/HumanRevolt/hrserver/db/db_test.go, db_test.go#TestPollVote=/home/jcampion/work/go/src/gitlab.com/HumanRevolt/hrserver/db/db_test.go, db_test.go#TestInterestActionDelete=/home/jcampion/work/go/src/gitlab.com/HumanRevolt/hrserver/db/db_test.go, db_test.go#TestScavengingGetWithUser=/home/jcampion/work/go/src/gitlab.com/HumanRevolt/hrserver/db/db_test.go, db_test.go#TestFortressDeletion=/home/jcampion/work/go/src/gitlab.com/HumanRevolt/hrserver/db/db_test.go, db_test.go#TestPollGetById=/home/jcampion/work/go/src/gitlab.com/HumanRevolt/hrserver/db/db_test.go, db_test.go#TestFortressUpdate=/home/jcampion/work/go/src/gitlab.com/HumanRevolt/hrserver/db/db_test.go, db_test.go#TestPollCreate=/home/jcampion/work/go/src/gitlab.com/HumanRevolt/hrserver/db/db_test.go, db_test.go#TestUserGetWithEmail=/home/jcampion/work/go/src/gitlab.com/HumanRevolt/hrserver/db/db_test.go, db_test.go#TestPollCheckUserAlreadyVoted=/home/jcampion/work/go/src/gitlab.com/HumanRevolt/hrserver/db/db_test.go, db_test.go#TestUserCreation=/home/jcampion/work/go/src/gitlab.com/HumanRevolt/hrserver/db/db_test.go, db_test.go#TestInterestUpdate=/home/jcampion/work/go/src/gitlab.com/HumanRevolt/hrserver/db/db_test.go, db_test.go#TestInterestActionGetWithUserAndInterest=/home/jcampion/work/go/src/gitlab.com/HumanRevolt/hrserver/db/db_test.go, db_test.go#TestInterestActionGetWithInterest=/home/jcampion/work/go/src/gitlab.com/HumanRevolt/hrserver/db/db_test.go, db_test.go#TestUserGetByID=/home/jcampion/work/go/src/gitlab.com/HumanRevolt/hrserver/db/db_test.go, db_test.go#TestScavengingCreate=/home/jcampion/work/go/src/gitlab.com/HumanRevolt/hrserver/db/db_test.go, db_test.go#TestFortressRetrievalWithID=/home/jcampion/work/go/src/gitlab.com/HumanRevolt/hrserver/db/db_test.go, db_test.go#TestInterestDelete=/home/jcampion/work/go/src/gitlab.com/HumanRevolt/hrserver/db/db_test.go, db_test.go#TestTokenGetWithValue=/home/jcampion/work/go/src/gitlab.com/HumanRevolt/hrserver/db/db_test.go, db_test.go#TestScavengingUpdate=/home/jcampion/work/go/src/gitlab.com/HumanRevolt/hrserver/db/db_test.go, db_test.go#TestPollDelete=/home/jcampion/work/go/src/gitlab.com/HumanRevolt/hrserver/db/db_test.go, db_test.go#TestUserGetWithToken=/home/jcampion/work/go/src/gitlab.com/HumanRevolt/hrserver/db/db_test.go, db_test.go#TestInterestGetWithId=/home/jcampion/work/go/src/gitlab.com/HumanRevolt/hrserver/db/db_test.go, db_test.go#TestUserGetWithName=/home/jcampion/work/go/src/gitlab.com/HumanRevolt/hrserver/db/db_test.go, db_test.go#TestMain=/home/jcampion/work/go/src/gitlab.com/HumanRevolt/hrserver/db/db_test.go, db_test.go#TestUserGetWithFortress=/home/jcampion/work/go/src/gitlab.com/HumanRevolt/hrserver/db/db_test.go, db_test.go#TestScavengingDelete=/home/jcampion/work/go/src/gitlab.com/HumanRevolt/hrserver/db/db_test.go, db_test.go#TestInterestGetWithLocation=/home/jcampion/work/go/src/gitlab.com/HumanRevolt/hrserver/db/db_test.go, db_test.go#TestInterestCreate=/home/jcampion/work/go/src/gitlab.com/HumanRevolt/hrserver/db/db_test.go, db_test.go#TestInterestActonCreate=/home/jcampion/work/go/src/gitlab.com/HumanRevolt/hrserver/db/db_test.go, db_test.go#TestFortressRetrievalWithLocation=/home/jcampion/work/go/src/gitlab.com/HumanRevolt/hrserver/db/db_test.go, db_test.go#TestUserGetWithCredentials=/home/jcampion/work/go/src/gitlab.com/HumanRevolt/hrserver/db/db_test.go, db_test.go#TestTokenDelete=/home/jcampion/work/go/src/gitlab.com/HumanRevolt/hrserver/db/db_test.go} 16:08:10.787 DEBUG: {db_test.go#TestFortressCreation=/home/jcampion/work/go/src/gitlab.com/HumanRevolt/hrserver/db/db_test.go, db_test.go#TestInterestGetWithFortress=/home/jcampion/work/go/src/gitlab.com/HumanRevolt/hrserver/db/db_test.go, db_test.go#TestTokenGetWithUser=/home/jcampion/work/go/src/gitlab.com/HumanRevolt/hrserver/db/db_test.go, db_test.go#TestTokenCreate=/home/jcampion/work/go/src/gitlab.com/HumanRevolt/hrserver/db/db_test.go, db_test.go#TestPollVote=/home/jcampion/work/go/src/gitlab.com/HumanRevolt/hrserver/db/db_test.go, db_test.go#TestInterestActionDelete=/home/jcampion/work/go/src/gitlab.com/HumanRevolt/hrserver/db/db_test.go, db_test.go#TestScavengingGetWithUser=/home/jcampion/work/go/src/gitlab.com/HumanRevolt/hrserver/db/db_test.go, db_test.go#TestFortressDeletion=/home/jcampion/work/go/src/gitlab.com/HumanRevolt/hrserver/db/db_test.go, db_test.go#TestPollGetById=/home/jcampion/work/go/src/gitlab.com/HumanRevolt/hrserver/db/db_test.go, db_test.go#TestFortressUpdate=/home/jcampion/work/go/src/gitlab.com/HumanRevolt/hrserver/db/db_test.go, db_test.go#TestPollCreate=/home/jcampion/work/go/src/gitlab.com/HumanRevolt/hrserver/db/db_test.go, db_test.go#TestUserGetWithEmail=/home/jcampion/work/go/src/gitlab.com/HumanRevolt/hrserver/db/db_test.go, db_test.go#TestPollCheckUserAlreadyVoted=/home/jcampion/work/go/src/gitlab.com/HumanRevolt/hrserver/db/db_test.go, db_test.go#TestUserCreation=/home/jcampion/work/go/src/gitlab.com/HumanRevolt/hrserver/db/db_test.go, db_test.go#TestInterestUpdate=/home/jcampion/work/go/src/gitlab.com/HumanRevolt/hrserver/db/db_test.go, db_test.go#TestInterestActionGetWithUserAndInterest=/home/jcampion/work/go/src/gitlab.com/HumanRevolt/hrserver/db/db_test.go, db_test.go#TestInterestActionGetWithInterest=/home/jcampion/work/go/src/gitlab.com/HumanRevolt/hrserver/db/db_test.go, db_test.go#TestUserGetByID=/home/jcampion/work/go/src/gitlab.com/HumanRevolt/hrserver/db/db_test.go, db_test.go#TestScavengingCreate=/home/jcampion/work/go/src/gitlab.com/HumanRevolt/hrserver/db/db_test.go, db_test.go#TestFortressRetrievalWithID=/home/jcampion/work/go/src/gitlab.com/HumanRevolt/hrserver/db/db_test.go, db_test.go#TestInterestDelete=/home/jcampion/work/go/src/gitlab.com/HumanRevolt/hrserver/db/db_test.go, db_test.go#TestTokenGetWithValue=/home/jcampion/work/go/src/gitlab.com/HumanRevolt/hrserver/db/db_test.go, db_test.go#TestScavengingUpdate=/home/jcampion/work/go/src/gitlab.com/HumanRevolt/hrserver/db/db_test.go, db_test.go#TestPollDelete=/home/jcampion/work/go/src/gitlab.com/HumanRevolt/hrserver/db/db_test.go, db_test.go#TestUserGetWithToken=/home/jcampion/work/go/src/gitlab.com/HumanRevolt/hrserver/db/db_test.go, db_test.go#TestInterestGetWithId=/home/jcampion/work/go/src/gitlab.com/HumanRevolt/hrserver/db/db_test.go, db_test.go#TestUserGetWithName=/home/jcampion/work/go/src/gitlab.com/HumanRevolt/hrserver/db/db_test.go, db_test.go#TestMain=/home/jcampion/work/go/src/gitlab.com/HumanRevolt/hrserver/db/db_test.go, db_test.go#TestUserGetWithFortress=/home/jcampion/work/go/src/gitlab.com/HumanRevolt/hrserver/db/db_test.go, db_test.go#TestScavengingDelete=/home/jcampion/work/go/src/gitlab.com/HumanRevolt/hrserver/db/db_test.go, db_test.go#TestInterestGetWithLocation=/home/jcampion/work/go/src/gitlab.com/HumanRevolt/hrserver/db/db_test.go, db_test.go#TestInterestCreate=/home/jcampion/work/go/src/gitlab.com/HumanRevolt/hrserver/db/db_test.go, db_test.go#TestInterestActonCreate=/home/jcampion/work/go/src/gitlab.com/HumanRevolt/hrserver/db/db_test.go, db_test.go#TestFortressRetrievalWithLocation=/home/jcampion/work/go/src/gitlab.com/HumanRevolt/hrserver/db/db_test.go, db_test.go#TestUserGetWithCredentials=/home/jcampion/work/go/src/gitlab.com/HumanRevolt/hrserver/db/db_test.go, db_test.go#TestTokenDelete=/home/jcampion/work/go/src/gitlab.com/HumanRevolt/hrserver/db/db_test.go} 16:08:10.802 WARN: /home/jcampion/work/go/src/gitlab.com/HumanRevolt/hrserver/db/db_test.go 16:08:10.803 WARN: Metric[id=,key=skipped_tests,description=Number of skipped unit tests,type=INT,direction=-1,domain=Coverage,name=Skipped Unit Tests,qualitative=true,userManaged=false,enabled=true,worstValue=,bestValue=0.0,optimizedBestValue=true,hidden=false,deleteHistoricalData=false,decimalScale=] 16:08:10.820 WARN: /home/jcampion/work/go/src/gitlab.com/HumanRevolt/hrserver/db/db_test.go 16:08:10.820 WARN: Metric[id=,key=tests,description=Number of unit tests,type=INT,direction=-1,domain=Coverage,name=Unit Tests,qualitative=false,userManaged=false,enabled=true,worstValue=,bestValue=,optimizedBestValue=false,hidden=false,deleteHistoricalData=false,decimalScale=] 16:08:10.821 WARN: /home/jcampion/work/go/src/gitlab.com/HumanRevolt/hrserver/db/db_test.go 16:08:10.821 WARN: Metric[id=,key=test_failures,description=Number of unit test failures,type=INT,direction=-1,domain=Coverage,name=Unit Test Failures,qualitative=true,userManaged=false,enabled=true,worstValue=,bestValue=0.0,optimizedBestValue=true,hidden=false,deleteHistoricalData=false,decimalScale=] 16:08:10.821 WARN: /home/jcampion/work/go/src/gitlab.com/HumanRevolt/hrserver/db/db_test.go 16:08:10.821 WARN: Metric[id=,key=test_execution_time,description=Execution duration of unit tests,type=MILLISEC,direction=-1,domain=Coverage,name=Unit Test Duration,qualitative=false,userManaged=false,enabled=true,worstValue=,bestValue=,optimizedBestValue=false,hidden=false,deleteHistoricalData=false,decimalScale=] 16:08:10.821 WARN: /home/jcampion/work/go/src/gitlab.com/HumanRevolt/hrserver/db/db_test.go 16:08:10.822 WARN: Metric[id=,key=skipped_tests,description=Number of skipped unit tests,type=INT,direction=-1,domain=Coverage,name=Skipped Unit Tests,qualitative=true,userManaged=false,enabled=true,worstValue=,bestValue=0.0,optimizedBestValue=true,hidden=false,deleteHistoricalData=false,decimalScale=] 16:08:10.830 INFO: ------------------------------------------------------------------------ 16:08:10.830 INFO: EXECUTION FAILURE 16:08:10.830 INFO: ------------------------------------------------------------------------ 16:08:10.830 INFO: Total time: 4.809s 16:08:10.951 INFO: Final Memory: 44M/139M 16:08:10.952 INFO: ------------------------------------------------------------------------ 16:08:10.952 ERROR: Error during SonarQube Scanner execution java.lang.UnsupportedOperationException: Can not add the same measure twice on db/db_test.go: DefaultMeasure[component=db/db_test.go,metric=Metric[id=,key=skipped_tests,description=Number of skipped unit tests,type=INT,direction=-1,domain=Coverage,name=Skipped Unit Tests,qualitative=true,userManaged=false,enabled=true,worstValue=,bestValue=0.0,optimizedBestValue=true,hidden=false,deleteHistoricalData=false,decimalScale=],value=0,fromCore=false] at org.sonar.scanner.sensor.DefaultSensorStorage.saveMeasure(DefaultSensorStorage.java:268) at org.sonar.scanner.sensor.DefaultSensorStorage.store(DefaultSensorStorage.java:212) at org.sonar.api.batch.sensor.measure.internal.DefaultMeasure.doSave(DefaultMeasure.java:95) at org.sonar.api.batch.sensor.internal.DefaultStorable.save(DefaultStorable.java:45) at fr.univartois.sonargo.gotest.GoTestReportSaver.saveMeasure(GoTestReportSaver.java:67) at fr.univartois.sonargo.gotest.GoTestReportSaver.saveMeasure(GoTestReportSaver.java:57) at fr.univartois.sonargo.gotest.GoTestReportSaver.save(GoTestReportSaver.java:49) at fr.univartois.sonargo.gotest.GoTestSensor.execute(GoTestSensor.java:69) at org.sonar.scanner.sensor.SensorWrapper.analyse(SensorWrapper.java:53) at org.sonar.scanner.phases.SensorsExecutor.executeSensor(SensorsExecutor.java:88) at org.sonar.scanner.phases.SensorsExecutor.execute(SensorsExecutor.java:82) at org.sonar.scanner.phases.SensorsExecutor.execute(SensorsExecutor.java:68) at org.sonar.scanner.phases.AbstractPhaseExecutor.execute(AbstractPhaseExecutor.java:88) at org.sonar.scanner.scan.ModuleScanContainer.doAfterStart(ModuleScanContainer.java:180) at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:135) at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:121) at org.sonar.scanner.scan.ProjectScanContainer.scan(ProjectScanContainer.java:288) at org.sonar.scanner.scan.ProjectScanContainer.scanRecursively(ProjectScanContainer.java:283) at org.sonar.scanner.scan.ProjectScanContainer.doAfterStart(ProjectScanContainer.java:261) at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:135) at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:121) at org.sonar.scanner.task.ScanTask.execute(ScanTask.java:48) at org.sonar.scanner.task.TaskContainer.doAfterStart(TaskContainer.java:84) at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:135) at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:121) at org.sonar.scanner.bootstrap.GlobalContainer.executeTask(GlobalContainer.java:121) at org.sonar.batch.bootstrapper.Batch.doExecuteTask(Batch.java:116) at org.sonar.batch.bootstrapper.Batch.executeTask(Batch.java:111) at org.sonarsource.scanner.api.internal.batch.BatchIsolatedLauncher.execute(BatchIsolatedLauncher.java:63) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.sonarsource.scanner.api.internal.IsolatedLauncherProxy.invoke(IsolatedLauncherProxy.java:60) at com.sun.proxy.$Proxy0.execute(Unknown Source) at org.sonarsource.scanner.api.EmbeddedScanner.doExecute(EmbeddedScanner.java:233) at org.sonarsource.scanner.api.EmbeddedScanner.runAnalysis(EmbeddedScanner.java:151) at org.sonarsource.scanner.cli.Main.runAnalysis(Main.java:123) at org.sonarsource.scanner.cli.Main.execute(Main.java:77) at org.sonarsource.scanner.cli.Main.main(Main.java:61) 16:08:10.953 DEBUG: Execution getVersion 16:08:10.953 DEBUG: Execution stop ```
thibaultfalque commented 6 years ago

Ok it's because this file "/home/jcampion/work/go/src/gitlab.com/HumanRevolt/hrserver/db/db_test.go" is added twice. But I don't understand why... I will try to find a solution as soon as possible.

thibaultfalque commented 6 years ago

@mrbacus I close this issue because the problem of @juliencampion is very different.

@juliencampion can you open an issue with your problem?

Thanks.