uartois / sonar-golang

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

Same file scanned twice #46

Open juliencampion opened 6 years ago

juliencampion commented 6 years ago

This issue was discovered in #43. Version is 1.2.11-rc7.

Here is the output log of sonar-scanner -X:

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

Thank you for submitting this issue, I will try to fix this ASAP.

danielleberre commented 6 years ago

I do not think that the same file is scanned twice.

I would rather consider that in some cases, the statistics per file are added to sonar twice.

It would be nice to have your junit report file to check what's going on.

juliencampion commented 6 years ago

Here are the contents of the file test.xml.

Click to expand ``` ```