require "helper" require "fluent/plugin/in_node_exporter_metrics" require "fluent/plugin/node_exporter/loadavg_collector" class LoadavgColectorTest < Test::Unit::TestCase sub_test_case "loadavg" do def parse(input) stub(File).read { input } collector = Fluent::Plugin::NodeExporter::LoadavgMetricsCollector.new collector.run yield collector end def test_invalid_fields proc_loadavg = <