test_doubles.c 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. // SPDX-License-Identifier: GPL-3.0-or-later
  2. #include "test_cgroups_plugin.h"
  3. void rrdset_is_obsolete(RRDSET *st)
  4. {
  5. UNUSED(st);
  6. }
  7. void rrdset_isnot_obsolete(RRDSET *st)
  8. {
  9. UNUSED(st);
  10. }
  11. struct mountinfo *mountinfo_read(int do_statvfs)
  12. {
  13. UNUSED(do_statvfs);
  14. return NULL;
  15. }
  16. struct mountinfo *
  17. mountinfo_find_by_filesystem_mount_source(struct mountinfo *root, const char *filesystem, const char *mount_source)
  18. {
  19. UNUSED(root);
  20. UNUSED(filesystem);
  21. UNUSED(mount_source);
  22. return NULL;
  23. }
  24. struct mountinfo *
  25. mountinfo_find_by_filesystem_super_option(struct mountinfo *root, const char *filesystem, const char *super_options)
  26. {
  27. UNUSED(root);
  28. UNUSED(filesystem);
  29. UNUSED(super_options);
  30. return NULL;
  31. }
  32. void mountinfo_free_all(struct mountinfo *mi)
  33. {
  34. UNUSED(mi);
  35. }
  36. struct label *__wrap_add_label_to_list(struct label *l, char *key, char *value, LABEL_SOURCE label_source)
  37. {
  38. function_called();
  39. check_expected_ptr(l);
  40. check_expected_ptr(key);
  41. check_expected_ptr(value);
  42. check_expected(label_source);
  43. return l;
  44. }
  45. void rrdset_update_labels(RRDSET *st, struct label *labels)
  46. {
  47. UNUSED(st);
  48. UNUSED(labels);
  49. }
  50. RRDSET *rrdset_create_custom(
  51. RRDHOST *host, const char *type, const char *id, const char *name, const char *family, const char *context,
  52. const char *title, const char *units, const char *plugin, const char *module, long priority, int update_every,
  53. RRDSET_TYPE chart_type, RRD_MEMORY_MODE memory_mode, long history_entries)
  54. {
  55. UNUSED(host);
  56. UNUSED(type);
  57. UNUSED(id);
  58. UNUSED(name);
  59. UNUSED(family);
  60. UNUSED(context);
  61. UNUSED(title);
  62. UNUSED(units);
  63. UNUSED(plugin);
  64. UNUSED(module);
  65. UNUSED(priority);
  66. UNUSED(update_every);
  67. UNUSED(chart_type);
  68. UNUSED(memory_mode);
  69. UNUSED(history_entries);
  70. return NULL;
  71. }
  72. RRDDIM *rrddim_add_custom(
  73. RRDSET *st, const char *id, const char *name, collected_number multiplier, collected_number divisor,
  74. RRD_ALGORITHM algorithm, RRD_MEMORY_MODE memory_mode)
  75. {
  76. UNUSED(st);
  77. UNUSED(id);
  78. UNUSED(name);
  79. UNUSED(multiplier);
  80. UNUSED(divisor);
  81. UNUSED(algorithm);
  82. UNUSED(memory_mode);
  83. return NULL;
  84. }
  85. collected_number rrddim_set(RRDSET *st, const char *id, collected_number value)
  86. {
  87. UNUSED(st);
  88. UNUSED(id);
  89. UNUSED(value);
  90. return 0;
  91. }
  92. collected_number rrddim_set_by_pointer(RRDSET *st, RRDDIM *rd, collected_number value)
  93. {
  94. UNUSED(st);
  95. UNUSED(rd);
  96. UNUSED(value);
  97. return 0;
  98. }
  99. RRDSETVAR *rrdsetvar_custom_chart_variable_create(RRDSET *st, const char *name)
  100. {
  101. UNUSED(st);
  102. UNUSED(name);
  103. return NULL;
  104. }
  105. void rrdsetvar_custom_chart_variable_set(RRDSETVAR *rs, calculated_number value)
  106. {
  107. UNUSED(rs);
  108. UNUSED(value);
  109. }
  110. void rrdset_next_usec(RRDSET *st, usec_t microseconds)
  111. {
  112. UNUSED(st);
  113. UNUSED(microseconds);
  114. }
  115. void rrdset_done(RRDSET *st)
  116. {
  117. UNUSED(st);
  118. }
  119. void update_pressure_chart(struct pressure_chart *chart)
  120. {
  121. UNUSED(chart);
  122. }
  123. void netdev_rename_device_add(
  124. const char *host_device, const char *container_device, const char *container_name, struct label *labels)
  125. {
  126. UNUSED(host_device);
  127. UNUSED(container_device);
  128. UNUSED(container_name);
  129. UNUSED(labels);
  130. }
  131. void netdev_rename_device_del(const char *host_device)
  132. {
  133. UNUSED(host_device);
  134. }