github.com/10XDev/rclone@v1.52.3-0.20200626220027-16af9ab76b2a/vfs/errors_test.go (about)

     1  package vfs
     2  
     3  import (
     4  	"testing"
     5  
     6  	"github.com/stretchr/testify/assert"
     7  )
     8  
     9  func TestErrorError(t *testing.T) {
    10  	assert.Equal(t, "Success", OK.Error())
    11  	assert.Equal(t, "Function not implemented", ENOSYS.Error())
    12  	assert.Equal(t, "Low level error 99", Error(99).Error())
    13  }