Testing Plugin Slug Management System in WPScan Database
This test suite validates the WPScan database plugin functionality, focusing on slug management and categorization. The tests ensure proper handling of plugin slugs across different classifications including popular and vulnerable plugins.
Test Coverage Overview
Implementation Analysis
Technical Details
Best Practices Demonstrated
wpscanteam/wpscan
spec/lib/db/plugins_spec.rb
# frozen_string_literal: true
describe WPScan::DB::Plugins do
subject(:plugins) { described_class }
describe '#all_slugs' do
its(:all_slugs) { should eql %w[no-vulns-popular vulnerable-not-popular] }
end
describe '#popular_slugs' do
its(:popular_slugs) { should eql %w[no-vulns-popular] }
end
describe '#vulnerable_slugs' do
its(:vulnerable_slugs) { should eql %w[vulnerable-not-popular] }
end
end