File: status_test.go

package info (click to toggle)
golang-github-jlaffaye-ftp 0.0~git20200812.39e3779-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, bullseye-backports
  • size: 192 kB
  • sloc: makefile: 4
file content (12 lines) | stat: -rw-r--r-- 259 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
package ftp

import (
	"testing"

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

func TestStatusText(t *testing.T) {
	assert.Equal(t, "Unknown status code: 0", StatusText(0))
	assert.Equal(t, "Invalid username or password.", StatusText(StatusInvalidCredentials))
}