Diffusion KIO 35c861bf146a

[KSambaShare] Add unit test for "net usershare info" parser

Authored by bruns on Oct 27 2018, 5:36 PM.

Description

[KSambaShare] Add unit test for "net usershare info" parser

Summary:
The existing tests depend on the runtime environment, i.e. they read
the share list from the developers usershares. In case the account
has no usershares, the parser is not tested.

Inject some test data for several test cases into the parser.

As the KSambaSharePrivate::parse() method is not visible from the
shared library by default, link statically to it.

Depends on D16464
Depends on D16465

Test Plan: make && ctest

Reviewers: Frameworks, broulik, apol

Reviewed By: apol

Subscribers: kde-frameworks-devel

Tags: Frameworks

Differential Revision: https://phabricator.kde.org/D16466

Details

Committed
brunsNov 4 2018, 1:22 AM
Reviewer
apol
Differential Revision
D16466: [KSambaShare] Add unit test for "net usershare info" parser
Parents
R241:253d58f6734e: [KSambaShare] Make "net usershare info" parser testable
Branches
Unknown
Tags
Unknown