In Facter3, the Facter.resolve API returned a Hash.
In Facter4, it returns a Facter::FactCollection that extends Hash. The FactCollection class is not part of the Facter API and can cause implementation details to leak. The resolve method should return a Hash.
In Facter3, the {{Facter.resolve}} API returned a {{Hash}}.
In Facter4, it returns a {{Facter::FactCollection}} that extends {{Hash}}. The {{FactCollection}} class is not part of the Facter API and can cause leaks implementation details to leak. The {{resolve}} method should return a {{Hash}}.
1. Add/update the unit test that verifies {{Facter.resolve}} behavior. There should be a test to assert the method returns {{{}an_instance_of?(Hash){}}}. Also check the {{Facter.to_hash}} method. 2. Update documentation tags so it's clear both of the methods {{"@return [Hash<String, Object>]"}}