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

PowerDNS / pdns / 18409242756

10 Oct 2025 02:16PM UTC coverage: 19.38% (-44.8%) from 64.13%
18409242756

push

github

web-flow
Merge pull request #16245 from miodvallat/matriochka_exception

auth: yet another logic botch

3972 of 30808 branches covered (12.89%)

Branch coverage included in aggregate %.

11562 of 49346 relevant lines covered (23.43%)

3168.61 hits per line

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

0.0
/pdns/lua-base4.hh
1
#pragma once
2
#include "namespaces.hh"
3
#include <boost/variant/variant.hpp>
4
#include <utility>
5
#ifdef HAVE_CONFIG_H
6
#include "config.h"
7
#endif
8
#include "ext/luawrapper/include/LuaContext.hpp"
9

10
class BaseLua4 : public boost::noncopyable
11
{
12
protected:
13
  std::unique_ptr<LuaContext> d_lw; // this is way on top because it must get destroyed _last_
14
  std::string d_include_path; // path where scripts to include at postLoad are
15

16
public:
17
  BaseLua4(std::string includePath) :
18
    d_include_path(std::move(includePath)) {};
×
19
  void loadFile(const std::string &fname, bool doPostLoad=true);
20
  void loadString(const std::string &script);
21
  void loadStream(std::istream &stream, bool doPostLoad=true);
22
  void includePath(const std::string &directory);
23
  virtual ~BaseLua4(); // this is so unique_ptr works with an incomplete type
24
protected:
25
  void prepareContext();
26
  virtual void postPrepareContext() = 0;
27
  virtual void postLoad() = 0;
28
  typedef vector<pair<string, int>> in_t;
29
  vector<pair<string, boost::variant<int, in_t, struct timeval*>>> d_pd;
30
  typedef vector<pair<string, boost::variant<string, bool, int, double>>> Features;
31
  virtual void getFeatures(Features&);
32
};
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

© 2026 Coveralls, Inc