• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

mavlink / MAVSDK / 6739182515

02 Nov 2023 11:04PM UTC coverage: 36.952% (+5.7%) from 31.229%
6739182515

push

github

web-flow
Merge pull request #2060 from mavlink/pr-split-ftp

Split Ftp plugin into Ftp and FtpServer

2002 of 2573 new or added lines in 26 files covered. (77.81%)

3 existing lines in 3 files now uncovered.

9920 of 26846 relevant lines covered (36.95%)

112.43 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

33.33
/src/mavsdk/plugins/ftp_server/ftp_server.cpp
1
// WARNING: THIS FILE IS AUTOGENERATED! As such, it should not be edited.
2
// Edits need to be made to the proto files
3
// (see https://github.com/mavlink/MAVSDK-Proto/blob/master/protos/ftp_server/ftp_server.proto)
4

5
#include <iomanip>
6

7
#include "ftp_server_impl.h"
8
#include "plugins/ftp_server/ftp_server.h"
9

10
namespace mavsdk {
11

12
FtpServer::FtpServer(std::shared_ptr<ServerComponent> server_component) :
24✔
13
    ServerPluginBase(),
14
    _impl{std::make_unique<FtpServerImpl>(server_component)}
24✔
15
{}
24✔
16

17
FtpServer::~FtpServer() {}
24✔
18

19
FtpServer::Result FtpServer::set_root_dir(std::string path) const
24✔
20
{
21
    return _impl->set_root_dir(path);
24✔
22
}
23

NEW
24
std::ostream& operator<<(std::ostream& str, FtpServer::Result const& result)
×
25
{
NEW
26
    switch (result) {
×
NEW
27
        case FtpServer::Result::Unknown:
×
NEW
28
            return str << "Unknown";
×
NEW
29
        case FtpServer::Result::Success:
×
NEW
30
            return str << "Success";
×
NEW
31
        case FtpServer::Result::DoesNotExist:
×
NEW
32
            return str << "Does Not Exist";
×
NEW
33
        case FtpServer::Result::Busy:
×
NEW
34
            return str << "Busy";
×
NEW
35
        default:
×
NEW
36
            return str << "Unknown";
×
37
    }
38
}
39

40
} // namespace mavsdk
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc