Skip to content

Commit

Permalink
fasdf
Browse files Browse the repository at this point in the history
  • Loading branch information
hu13 committed Dec 29, 2024
1 parent e1a9370 commit d82aee1
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
6 changes: 5 additions & 1 deletion windows/storage/provider/storage_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,10 @@ func Test_GetCurrentSyncRoots(t *testing.T) {
// tr := initTestResource(t, withTestBrowseDirFn(defaultBrowseDirTestFunc), withConnectSyncRoot())
// defer tr.cleanUp()

ok, err := StorageProviderSyncRootManagerIsSupported()
require.NoError(t, err)
require.True(t, ok)

roots, err := StorageProviderSyncRootManagerGetCurrentSyncRoots()
require.NoError(t, err)
numRoots, err := roots.GetSize()
Expand Down Expand Up @@ -175,7 +179,7 @@ func Test_GetCurrentSyncRoots(t *testing.T) {
err = syncRootInfo.SetContext(bufferContext)
require.NoError(t, err)

syncRootInfo.SetId("{00000000-0000-0000-0000-000000000001}")
syncRootInfo.SetId("{00000000-1234-0000-0000-000000000001}")

Check failure on line 182 in windows/storage/provider/storage_test.go

View workflow job for this annotation

GitHub Actions / build-windows

Error return value of `syncRootInfo.SetId` is not checked (errcheck)
require.NoError(t, err)
dir, err := GetFolderFromPath(syncRootPath)
require.NoError(t, err)
Expand Down
3 changes: 0 additions & 3 deletions windows/storage/provider/storageprovideritemproperty.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion winrt_preveil.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@ package winrt

// for preveil cloud drive

//go:generate go run github.com/saltosystems/winrt-go/cmd/winrt-go-gen -debug -class Windows.Storage.Streams.IDataWriter -method-filter WriteBytes -method-filter DetachBuffer -method-filter !*
//go:generate go run github.com/saltosystems/winrt-go/cmd/winrt-go-gen -debug -class Windows.Storage.Streams.DataWriter -method-filter WriteBytes -method-filter DetachBuffer -method-filter DataWriter -method-filter Close -method-filter !*

// FIXME: need to filter out methods that are not supported by the current implementation
//go:generate go run github.com/saltosystems/winrt-go/cmd/winrt-go-gen -debug -class Windows.Storage.StorageFolder
//go:generate go run github.com/saltosystems/winrt-go/cmd/winrt-go-gen -debug -class Windows.Storage.StorageFolder -method-filter StorageFolderGetFolderFromPathAsync -method-filter !*

//go:generate go run github.com/saltosystems/winrt-go/cmd/winrt-go-gen -debug -class Windows.Storage.FileProperties.ThumbnailOptions
//go:generate go run github.com/saltosystems/winrt-go/cmd/winrt-go-gen -debug -class Windows.Storage.FileProperties.ThumbnailMode
Expand Down

0 comments on commit d82aee1

Please sign in to comment.