15 Star 71 Fork 21

Gitee 极速下载/Fyne

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/fyne-io/fyne
克隆/下载
app_test.go 1.08 KB
一键复制 编辑 原始数据 按行查看 历史
pierre 提交于 2024-09-08 16:13 +08:00 . Add fyne.App.Clipboard method, fixes #4418
package fyne
import (
"net/url"
"testing"
"github.com/stretchr/testify/assert"
)
type dummyApp struct{}
func (dummyApp) CloudProvider() CloudProvider {
return nil
}
func (dummyApp) NewWindow(title string) Window {
return nil
}
func (dummyApp) OpenURL(url *url.URL) error {
return nil
}
func (dummyApp) Icon() Resource {
return nil
}
func (dummyApp) SetIcon(Resource) {
}
func (dummyApp) Run() {
}
func (dummyApp) Quit() {
}
func (dummyApp) Driver() Driver {
return nil
}
func (dummyApp) UniqueID() string {
return "dummy"
}
func (dummyApp) SendNotification(*Notification) {
}
func (dummyApp) SetCloudProvider(CloudProvider) {
}
func (dummyApp) Settings() Settings {
return nil
}
func (dummyApp) Storage() Storage {
return nil
}
func (dummyApp) Preferences() Preferences {
return nil
}
func (dummyApp) Lifecycle() Lifecycle {
return nil
}
func (dummyApp) Metadata() AppMetadata {
return AppMetadata{}
}
func (dummyApp) Clipboard() Clipboard {
return nil
}
func TestSetCurrentApp(t *testing.T) {
a := &dummyApp{}
SetCurrentApp(a)
assert.Equal(t, a, CurrentApp())
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/mirrors/Fyne.git
git@gitee.com:mirrors/Fyne.git
mirrors
Fyne
Fyne
master

搜索帮助