// Copyright 2014 The Go Authors. All rights reserved.// Use of this source code is governed by a BSD-style// license that can be found in the LICENSE file.// +build darwin dragonfly freebsd linux netbsd openbsdpackagetestimport("testing")funcTestBannerCallbackAgainstOpenSSH(t*testing.T){server:=newServer(t)deferserver.Shutdown()clientConf:=clientConfig()varreceivedBannerstringclientConf.BannerCallback=func(messagestring)error{receivedBanner=messagereturnnil}conn:=server.Dial(clientConf)deferconn.Close()expected:="Server Banner"ifreceivedBanner!=expected{t.Fatalf("got %v; want %v",receivedBanner,expected)}}