PasteFerry (隔空贴): clipboard and file sync across macOS, Windows and Linux. Direct-first, end-to-end encrypted. Optional official access: no server to host. Independent self-hosting remains available.
Dart airdrop-alternativeclipboardclipboard-sharingclipboard-synccopy-pastecross-platformend-to-end-encryptionfile-syncfile-transferfluttergolanglinuxmacosnat-traversalp2pself-hostedtailscaleuniversal-clipboardwebrtcwindows
package rpc
import (
"testing"
"github.com/baiyuze/pasteferry/client-core/internal/send"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
)
func TestConnectingTransferError(t *testing.T) {
s := status.Convert(transferError(send.ErrConnecting))
if s.Code() != codes.FailedPrecondition || s.Message() != "connecting" {
t.Fatalf("连接中不能变成不支持或内部错误: %v", s)
}
}