File: errors_test.go

package info (click to toggle)
rclone 1.65.0%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 38,352 kB
  • sloc: sh: 1,056; xml: 857; python: 693; javascript: 612; makefile: 289; ansic: 101; php: 74
file content (13 lines) | stat: -rw-r--r-- 272 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
package vfs

import (
	"testing"

	"github.com/stretchr/testify/assert"
)

func TestErrorError(t *testing.T) {
	assert.Equal(t, "Success", OK.Error())
	assert.Equal(t, "Function not implemented", ENOSYS.Error())
	assert.Equal(t, "Low level error 99", Error(99).Error())
}