libgocryptfs/tests
Jakob Unterwurzacher c86981342b golangci-lint: fix issues found by gosimple
Everything except the

	if err2.Err == syscall.EOPNOTSUPP

case. Gets too confusing when collapsed into a single line.

Issues were:

$ golangci-lint run --disable-all --enable gosimple
mount.go:473:2: S1008: should use 'return strings.HasPrefix(v, "fusermount version")' instead of 'if strings.HasPrefix(v, "fusermount version") { return true }; return false' (gosimple)
	if strings.HasPrefix(v, "fusermount version") {
	^
cli_args.go:258:5: S1002: should omit comparison to bool constant, can be simplified to `args.forcedecode` (gosimple)
	if args.forcedecode == true {
	   ^
cli_args.go:263:6: S1002: should omit comparison to bool constant, can be simplified to `args.aessiv` (gosimple)
		if args.aessiv == true {
		   ^
cli_args.go:267:6: S1002: should omit comparison to bool constant, can be simplified to `args.reverse` (gosimple)
		if args.reverse == true {
		   ^
internal/stupidgcm/stupidgcm.go:227:6: S1002: should omit comparison to bool constant, can be simplified to `g.forceDecode` (gosimple)
		if g.forceDecode == true {
		   ^
gocryptfs-xray/xray_tests/xray_test.go:23:5: S1004: should use !bytes.Equal(out, expected) instead (gosimple)
	if bytes.Compare(out, expected) != 0 {
	   ^
gocryptfs-xray/xray_tests/xray_test.go:40:5: S1004: should use !bytes.Equal(out, expected) instead (gosimple)
	if bytes.Compare(out, expected) != 0 {
	   ^
gocryptfs-xray/paths_ctlsock.go:34:20: S1002: should omit comparison to bool constant, can be simplified to `!eof` (gosimple)
	for eof := false; eof == false; line++ {
	                  ^
tests/reverse/xattr_test.go:19:2: S1008: should use 'return err2.Err != syscall.EOPNOTSUPP' instead of 'if err2.Err == syscall.EOPNOTSUPP { return false }; return true' (gosimple)
	if err2.Err == syscall.EOPNOTSUPP {
	^
internal/fusefrontend/node.go:459:45: S1002: should omit comparison to bool constant, can be simplified to `!nameFileAlreadyThere` (gosimple)
		if nametransform.IsLongContent(cName2) && nameFileAlreadyThere == false {
		                                          ^
tests/xattr/xattr_integration_test.go:221:2: S1008: should use 'return err2.Err != syscall.EOPNOTSUPP' instead of 'if err2.Err == syscall.EOPNOTSUPP { return false }; return true' (gosimple)
	if err2.Err == syscall.EOPNOTSUPP {
	^
tests/test_helpers/helpers.go:338:19: S1002: should omit comparison to bool constant, can be simplified to `open` (gosimple)
	if err != nil && open == true {
	                 ^
tests/matrix/concurrency_test.go:121:7: S1004: should use !bytes.Equal(buf, content) instead (gosimple)
			if bytes.Compare(buf, content) != 0 {
			   ^
2021-08-19 08:34:44 +02:00
..
cli tests/cli/TestBadname: make sure case 5 is never decodable 2021-08-17 15:17:36 +02:00
defaults Fix issues found by ineffassign 2021-08-18 15:48:01 +02:00
example_filesystems nametransform: check name validity on encryption 2021-06-02 14:29:48 +02:00
fsck tests/fsck: delete obsolete script run_fsck.bash 2021-06-26 19:27:58 +02:00
hkdf_sanity tests: add hkdf_sanity tests with broken example filesystem 2017-03-18 16:48:58 +01:00
matrix golangci-lint: fix issues found by gosimple 2021-08-19 08:34:44 +02:00
plaintextnames tests: TestFileHoleCopy: accept +-4kB 2021-05-29 16:56:20 +02:00
reverse reverse: fix "exclude all but" case 2021-08-18 11:38:56 +02:00
root_test tests/root_test: show failing command detail 2021-08-16 19:24:04 +02:00
sharedstorage tests: sharedstorage: wait 100ms longer for cache expiry 2021-04-02 20:22:26 +02:00
stress_tests tests: fsstress-gocryptfs.bash: log timestamp for each iteration 2020-10-04 00:12:46 +02:00
symlink_race tests: add symlink_race tool 2018-09-23 12:17:26 +02:00
test_helpers golangci-lint: fix issues found by gosimple 2021-08-19 08:34:44 +02:00
xattr Fix issues found by ineffassign 2021-08-18 15:48:01 +02:00
canonical-benchmarks.bash canonical-benchmarks.bash: handle relative paths 2021-06-27 11:48:41 +02:00
dl-linux-tarball.bash macos: tests: use curl of wget is not available 2018-03-07 09:40:48 +01:00
fuse-unmount.bash Assorted spelling fixes. 2018-12-27 15:19:55 +01:00
len2elen.sh test: len2elen.sh: fix first line output 2019-02-17 16:06:05 +01:00
sshfs-benchmark.bash sshfs-benchmark.bash: fix locale trouble and move to tests 2020-06-06 12:15:41 +02:00